From c331eac5bbaaaed8edfadf430d78df09fab1dffb Mon Sep 17 00:00:00 2001 From: cetteup Date: Wed, 4 Aug 2021 19:52:32 +0200 Subject: [PATCH] Fix teamOffByOne condition for Battlefield 1942 --- protocols/gamespy1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/gamespy1.js b/protocols/gamespy1.js index 64330f9..0b04e9a 100644 --- a/protocols/gamespy1.js +++ b/protocols/gamespy1.js @@ -46,7 +46,7 @@ class Gamespy1 extends Core { if ('maxplayers' in data) state.maxplayers = parseInt(data.maxplayers); if ('hostport' in data) state.gamePort = parseInt(data.hostport); - const teamOffByOne = data.gameid === 'bf1942'; + const teamOffByOne = data.gamename === 'bfield1942'; const playersById = {}; const teamNamesById = {}; for (const ident of Object.keys(data)) {