Added quickfix for quake2 hostname

Left other ones in there just incase of unforseen compatibility issues.
This commit is contained in:
xCausxn 2015-07-18 23:13:58 +01:00
parent 869ca4a4d8
commit ae8c13ba69

View file

@ -78,6 +78,7 @@ module.exports = require('./core').extend({
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('hostname' in state.raw) state.name = state.raw.hostname;
self.finish(state);
return true;