mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
Fix teamOffByOne condition for Battlefield 1942
This commit is contained in:
parent
a8b7cad002
commit
c331eac5bb
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class Gamespy1 extends Core {
|
||||||
if ('maxplayers' in data) state.maxplayers = parseInt(data.maxplayers);
|
if ('maxplayers' in data) state.maxplayers = parseInt(data.maxplayers);
|
||||||
if ('hostport' in data) state.gamePort = parseInt(data.hostport);
|
if ('hostport' in data) state.gamePort = parseInt(data.hostport);
|
||||||
|
|
||||||
const teamOffByOne = data.gameid === 'bf1942';
|
const teamOffByOne = data.gamename === 'bfield1942';
|
||||||
const playersById = {};
|
const playersById = {};
|
||||||
const teamNamesById = {};
|
const teamNamesById = {};
|
||||||
for (const ident of Object.keys(data)) {
|
for (const ident of Object.keys(data)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue