diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-22 11:42:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-22 11:42:38 +0100 |
commit | 4abb7acfeda6bb2b804280b04c676bab6039120f (patch) | |
tree | 495c8f430fe719cca50946d39c625f98c6f5af2f | |
parent | c13f573762bf44d88d07281b713bab60a9c9a1ba (diff) | |
download | 1989-dawn-of-freedom-4abb7acfeda6bb2b804280b04c676bab6039120f.tar.gz |
Simplify inactive player check.
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -457,7 +457,7 @@ exports.view = function (state, player) { if (game.state === "game_over") { view.prompt = game.victory - } else if (player === "Observer" || (game.active !== player && game.active !== "Both")) { + } else if (game.active !== player) { if (states[game.state]) { let inactive = states[game.state].inactive if (!inactive) |