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.
This commit is contained in:
parent
e0a70e4b0e
commit
7e88c7cdc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue