Fixed split packet sending

This commit is contained in:
Shoghi Cervantes 2014-02-08 00:29:20 +01:00
parent 2562d8fc41
commit 28a753ba60
2 changed files with 1 additions and 4 deletions

View File

@ -2317,7 +2317,7 @@ class Player{
$sendtime = microtime(true);
$size = $this->MTU - 34;
$buffer = str_split(chr($packet->pid()). $packet->buffer, $size);
$buffer = str_split(chr($packet->pid()) . $packet->buffer, $size);
$bigCnt = $this->bigCnt;
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;
$cnts = array();

View File

@ -144,9 +144,6 @@ class RakNetCodec{
$this->putInt($pk->splitCount);
$this->putShort($pk->splitID);
$this->putInt($pk->splitIndex);
if($pk->splitIndex === 0){
$this->putByte($pk->pid());
}
}else{
$this->putByte($pk->pid());
}