More packets, new structure

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-06 16:10:26 +01:00
parent 2fd71922ca
commit 8b1c010b4d
9 changed files with 213 additions and 69 deletions

View File

@ -60,7 +60,7 @@ class SerializedPacketHandler{
$pid = ord($this->get(1));
}
$len = Utils::readShort($this->get(2), false) >> 3;
$len = ceil(Utils::readShort($this->get(2), false) / 8); //Utils::readShort($this->get(2), false) >> 3;
if($pid !== 0x00){
$c = Utils::readTriad($this->get(3));
}