diff options
-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; } |