summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-08-11 16:19:45 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-08-11 16:19:45 -0400
commit5cba3d84eae256cdb4fd79d6e2bed83e21f7a646 (patch)
treeb7e26c2da226dc5736b34b387c20ad7875f6e363 /scripts
parent2e67661f0016874b7afbfeeb773401b94d5cefcd (diff)
css changes
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gui/lobby.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js
index c760f50..a303da8 100644
--- a/scripts/gui/lobby.js
+++ b/scripts/gui/lobby.js
@@ -193,8 +193,10 @@ class Lobby {
// { data.pass } true or false weather the game has a password
addGame (data) {
- let g = new Game(data, this.e.games);
- this.games[data.id] = g;
+ if(this.games[data.id] == null) {
+ let g = new Game(data, this.e.games);
+ this.games[data.id] = g;
+ }
}
// Called when a new public game is removed on the server