grrrr
This commit is contained in:
parent
297f74c9fc
commit
ec06d2c2cf
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user