From 257b330a5397d3640c820347c8158a6a0df7b0f3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 29 Mar 2013 11:07:45 +0100 Subject: [PATCH] Fixed ACK/NACK range reading --- src/network/Packet.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/network/Packet.php b/src/network/Packet.php index e4bbd5c4..d034dd41 100644 --- a/src/network/Packet.php +++ b/src/network/Packet.php @@ -177,9 +177,14 @@ class Packet{ $this->data[$field] = array(); for($i = 0; $i < $cnt; ++$i){ if(Utils::readBool($this->get(1)) === false){ + $start = Utils::readTriad(strrev($this->get(3))); + $end = Utils::readTriad(strrev($this->get(3))); + for($c = $start; $c <= $end; ++$c){ + $this->data[$field][] = $c; + } + }else{ $this->data[$field][] = Utils::readTriad(strrev($this->get(3))); } - $this->data[$field][] = Utils::readTriad(strrev($this->get(3))); } break; case 0x05: