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;