mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-07 11:31:28 +02:00
18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
module.exports = require('./quake3').extend({
|
|
init: function() {
|
|
this._super();
|
|
this.pretty = 'Warsow';
|
|
this.options.port = 44400;
|
|
},
|
|
prepState: function(state) {
|
|
this._super(state);
|
|
if(state.players) {
|
|
for(var i = 0; i < state.players.length; i++) {
|
|
var player = state.players[i];
|
|
player.team = player.address;
|
|
delete player.address;
|
|
}
|
|
}
|
|
}
|
|
});
|