add new game

This commit is contained in:
Pedro Ivo Hudson 2024-02-14 11:47:11 -03:00
parent 5337b85712
commit 3dedb5e0e6
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ export default class gamespy2 extends Core {
if (this.trueTest(state.raw.password)) state.password = true
if ('maxplayers' in state.raw) state.maxplayers = parseInt(state.raw.maxplayers)
if ('hostport' in state.raw) state.gamePort = parseInt(state.raw.hostport)
if ('gamever' in state.raw) state.version = state.raw.gamever
}
// Parse players