From efa75404041c520ab4bd13505c52923db3b8cf84 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 8 Oct 2020 11:14:48 -0600 Subject: [PATCH] Condense the game object creation --- src/events/HostGame.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/HostGame.ts b/src/events/HostGame.ts index 4649a4a..9abab58 100644 --- a/src/events/HostGame.ts +++ b/src/events/HostGame.ts @@ -28,10 +28,9 @@ export const HostGame = (socket: Socket, data: HostGame) => { // Add the user to the game's room socket.join(game_code); + // Create the game let game = new Game(game_code, data.username) - active_games[game_code] = game; - log.info(`${data.username} created a game. (Gamecode: ${game_code})`); // Respond to client