mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Fix issues with corrupt strings in unreal2 protocol
This commit is contained in:
parent
f952652251
commit
2915d962a8
5 changed files with 57 additions and 16 deletions
|
|
@ -5,8 +5,8 @@ module.exports = require('./protocols/unreal2').extend({
|
|||
this.pretty = 'Unreal Tournament 2004';
|
||||
},
|
||||
readExtraInfo: function(reader,state) {
|
||||
reader.skip(18);
|
||||
state.raw.numplayers = reader.uint(4);
|
||||
state.maxplayers = reader.uint(4);
|
||||
state.raw.ping = reader.uint(4);
|
||||
state.raw.flags = reader.uint(4);
|
||||
state.raw.skill = reader.uint(2);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue