diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-17 01:14:52 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-07-17 01:15:55 +0200 |
commit | 3a4ed8893e03870acfbb85c40d7e0b9519822e38 (patch) | |
tree | 0fb13c122ac9a35f5b56ec437a92fe17cc96e36d /public | |
parent | a8cd45bec20a0df8feca267842ad80198f928b44 (diff) | |
download | server-3a4ed8893e03870acfbb85c40d7e0b9519822e38.tar.gz |
Allow passing '0' as action argument.
Diffstat (limited to 'public')
-rw-r--r-- | public/common/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/common/client.js b/public/common/client.js index d7faa3c..a6b3453 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -436,7 +436,7 @@ function confirm_resign() { function send_action(verb, noun) { // Reset action list here so we don't send more than one action per server prompt! - if (noun) { + if (noun !== undefined) { if (game.actions && game.actions[verb] && game.actions[verb].includes(noun)) { game.actions = null; console.log("SEND ACTION", verb, noun); @@ -446,7 +446,7 @@ function send_action(verb, noun) { } else { if (game.actions && game.actions[verb]) { game.actions = null; - console.log("SEND ACTION", verb, noun); + console.log("SEND ACTION", verb); socket.emit('action', verb); return true; } |