Split packet handling verified

This commit is contained in:
Shoghi Cervantes 2014-02-08 22:49:13 +01:00
parent a8b26a3caf
commit 3fed63b248
2 changed files with 1 additions and 3 deletions

View File

@ -1141,7 +1141,7 @@ class Player{
foreach($this->receiveQueue as $count => $packets){
unset($this->receiveQueue[$count]);
foreach($packets as $p){
if($p instanceof RakNetDataPacket){
if($p instanceof RakNetDataPacket and $p->hasSplit === false){
if(isset($p->messageIndex) and $p->messageIndex !== false){
if($p->messageIndex > $this->receiveCount){
$this->receiveCount = $p->messageIndex;

View File

@ -170,8 +170,6 @@ class RakNetParser{
$splitCount = $this->getInt();
$splitID = $this->getShort();
$splitIndex = $this->getInt();
//error! no split packets allowed!
return false;
}else{
$splitCount = false;
$splitID = false;