# HG changeset patch # User John "Elwin" Edwards # Date 1339263851 25200 # Node ID ea3b7775009d679267535ea9b6c8dd82ce246e2b # Parent f7116eb3f791398406d43119014a76e9b70d3268 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. diff -r f7116eb3f791 -r ea3b7775009d rlgterm.js --- a/rlgterm.js Fri Jun 08 18:11:47 2012 -0700 +++ b/rlgterm.js Sat Jun 09 10:44:11 2012 -0700 @@ -142,7 +142,7 @@ 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);