mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Fix for maxclients on Quake2
This commit is contained in:
parent
6e4688a4c8
commit
869ca4a4d8
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ module.exports = require('./core').extend({
|
||||||
if('g_needpass' in state.raw) state.password = state.raw.g_needpass;
|
if('g_needpass' in state.raw) state.password = state.raw.g_needpass;
|
||||||
if('mapname' in state.raw) state.map = state.raw.mapname;
|
if('mapname' in state.raw) state.map = state.raw.mapname;
|
||||||
if('sv_maxclients' in state.raw) state.maxplayers = state.raw.sv_maxclients;
|
if('sv_maxclients' in state.raw) state.maxplayers = state.raw.sv_maxclients;
|
||||||
|
if('maxclients' in state.raw) state.maxplayers = state.raw.maxclients;
|
||||||
if('sv_hostname' in state.raw) state.name = state.raw.sv_hostname;
|
if('sv_hostname' in state.raw) state.name = state.raw.sv_hostname;
|
||||||
|
|
||||||
self.finish(state);
|
self.finish(state);
|
||||||
|
|
Loading…
Reference in a new issue