fix php parse
This commit is contained in:
parent
5c1eb66577
commit
3c2afc38d2
|
@ -85,7 +85,7 @@ switch($_POST['act']){
|
||||||
//haut
|
//haut
|
||||||
$top=true;
|
$top=true;
|
||||||
for($i = $ytest; $i >= $ytest - $shipWidth + 1; $i--){
|
for($i = $ytest; $i >= $ytest - $shipWidth + 1; $i--){
|
||||||
if ((!isset($map[$i][$xtest])
|
if ((!isset($map[$i][$xtest]))
|
||||||
OR ($map[$i][$xtest] == 1)){
|
OR ($map[$i][$xtest] == 1)){
|
||||||
$top=false;
|
$top=false;
|
||||||
break;
|
break;
|
||||||
|
@ -95,7 +95,7 @@ switch($_POST['act']){
|
||||||
//vers le bas
|
//vers le bas
|
||||||
$bottom=true;
|
$bottom=true;
|
||||||
for($y=$ytest; $i < $ytest + $shipWidth -1; $i++){
|
for($y=$ytest; $i < $ytest + $shipWidth -1; $i++){
|
||||||
if ((!isset($map[$i][$xtest])
|
if ((!isset($map[$i][$xtest]))
|
||||||
OR ($map[$i][$xtest] == 1)){
|
OR ($map[$i][$xtest] == 1)){
|
||||||
$bottom=false;
|
$bottom=false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user