This commit is contained in:
gnieark 2015-12-16 00:06:35 +01:00
parent 297f74c9fc
commit ec06d2c2cf

View File

@ -61,7 +61,7 @@ switch($_POST['act']){
//construire une grille
for($i=0; $i < $width; $i++){
for($j=0; $j < $height; $j++){
$map[$i][$j]=0;
$map[$j][$i]=0;
}
}
@ -112,9 +112,7 @@ switch($_POST['act']){
}
}
//gauche
$left=true;
for($i = $xtest; $i >= $xtest - $shipWidth + 1; $i--){
if((!isset($map[$ytest][$i]))