From: Carl Worth Date: Tue, 30 Jun 2020 00:01:29 +0000 (-0700) Subject: Fix bug when a player reclaims a previous player object by name X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=commitdiff_plain;h=4c3572dcbf3e133c9f3d0c7d295f412ff5b88763 Fix bug when a player reclaims a previous player object by name Previously, we were forgetting to update the session ID map, leading to an experience where the player couldn't submit any words, etc. (Sorry, David!). --- diff --git a/game.js b/game.js index 55145bb..fa29068 100644 --- a/game.js +++ b/game.js @@ -184,6 +184,7 @@ class Game { this.broadcast_event("player-enter", existing.info_json()); } existing.add_connection(connection); + this.players_by_session[session.id] = existing; return existing; }