mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
Improve source protocol to support all available features
This commit is contained in:
parent
ef0f0075d3
commit
f062e03271
5 changed files with 56 additions and 10 deletions
|
|
@ -80,7 +80,7 @@ module.exports = require('./core').extend({
|
|||
id = id & 0x7f;
|
||||
if(last) numPackets = id+1;
|
||||
|
||||
packets[id] = buffer;
|
||||
packets[id] = buffer.slice(16);
|
||||
|
||||
if(!numPackets || Object.keys(packets).length != numPackets) return;
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ module.exports = require('./core').extend({
|
|||
self.error('Missing packet #'+i);
|
||||
return true;
|
||||
}
|
||||
list.push(packets[i].slice(16));
|
||||
list.push(packets[i]);
|
||||
}
|
||||
var assembled = Buffer.concat(list);
|
||||
c(assembled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue