Another fast network fix

This commit is contained in:
Shoghi Cervantes 2013-06-06 17:34:42 +02:00
parent 63933ed1fc
commit 5cb06579cd

View File

@ -885,7 +885,7 @@ class Player{
$this->need[$i] = true; $this->need[$i] = true;
} }
$this->send(0xa0, $arr); $this->send(0xa0, $arr);
$this->queue[$data[0]] = $data; $this->queue[$data[0]] = array($pid, $data);
break; break;
}elseif($diff === 1){ }elseif($diff === 1){
$this->counter[1] = $data[0]; $this->counter[1] = $data[0];
@ -1536,11 +1536,11 @@ class Player{
if(isset($this->queue[$this->counter[1] + 1])){ if(isset($this->queue[$this->counter[1] + 1])){
$d = $this->queue[$this->counter[1] + 1]; $d = $this->queue[$this->counter[1] + 1];
unset($this->queue[$this->counter[1] + 1]); unset($this->queue[$this->counter[1] + 1]);
$this->handle($d["pid"], $d); $this->handle($d0, $d[1]);
}elseif(count($this->queue) > 25){ }elseif(count($this->queue) > 25){
$q = array_shift($this->queue); $q = array_shift($this->queue);
$this->counter[1] = $q[0]; $this->counter[1] = $q[1][0];
$this->handle($q["pid"], $q); $this->handle($q[0], $q[1]);
} }
break; break;
} }