From 7e88c7cdc3526d3be4022687853875af2424f2eb Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sat, 9 Jun 2012 10:44:11 -0700 Subject: [PATCH] rlgterm.js: fix failure to recognize end of game The RLG-Web client was failing to realize the game was over, because a test was checking against the entire response instead of the proper field in the response. --- rlgterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rlgterm.js b/rlgterm.js index 85d5fd6..c6dee71 100644 --- a/rlgterm.js +++ b/rlgterm.js @@ -142,7 +142,7 @@ function processMsg(msg) { if (!msgDict.t) return null; else if (msgDict.t == "E") { - if (msgDict.c == 1 || msgDict.c == 6 || msgDict == 7) { + if (msgDict.c == 1 || msgDict.c == 6 || msgDict.c == 7) { gameover(); } debug(1, "Server error: " + msgDict.s);