fix ship size limit

This commit is contained in:
Gnieark 2015-12-14 16:52:25 +01:00
parent 55a3826784
commit 1b5222da39

View File

@ -68,7 +68,7 @@ switch($_POST['act']){
$shipsCoords=array();
//pour toutes les tailles de bateau
for($shipWidth = 6; $shipWidth >= 0; $shipWidth--){
for($shipWidth = 6; $shipWidth > 0; $shipWidth--){
//nombre de bateau à placer de cette taille
$dynVar='ship'.$shipWidth;
$shipCount=$$dynVar; // #trollface