grrrr
This commit is contained in:
parent
297f74c9fc
commit
ec06d2c2cf
|
@ -61,7 +61,7 @@ switch($_POST['act']){
|
||||||
//construire une grille
|
//construire une grille
|
||||||
for($i=0; $i < $width; $i++){
|
for($i=0; $i < $width; $i++){
|
||||||
for($j=0; $j < $height; $j++){
|
for($j=0; $j < $height; $j++){
|
||||||
$map[$i][$j]=0;
|
$map[$j][$i]=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,9 +112,7 @@ switch($_POST['act']){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//gauche
|
//gauche
|
||||||
|
|
||||||
$left=true;
|
$left=true;
|
||||||
for($i = $xtest; $i >= $xtest - $shipWidth + 1; $i--){
|
for($i = $xtest; $i >= $xtest - $shipWidth + 1; $i--){
|
||||||
if((!isset($map[$ytest][$i]))
|
if((!isset($map[$ytest][$i]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user