diff --git a/src/arenas/tron/act.php b/src/arenas/tron/act.php index c28cde9..978198b 100644 --- a/src/arenas/tron/act.php +++ b/src/arenas/tron/act.php @@ -29,7 +29,7 @@ switch ($_POST['act']){ }while(in_array($x.",".$y,$positions)); $positions[] = $x.",".$y; - $bots[$botCount] = new TronPlayer($bot['id'],500,10,'y+'); + $bots[$botCount] = new TronPlayer($botId,$x,$y,'y+'); if ($bots[$botCount]->getStatus() === false){ unset($bots[$botCount]);