From 3c2afc38d22d90c66aec2b84fe6927ec32b0cd18 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 15 Dec 2015 23:29:01 +0100 Subject: [PATCH] fix php parse --- html/StupidIABattleship.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index ffc725e..05941e0 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -85,7 +85,7 @@ switch($_POST['act']){ //haut $top=true; for($i = $ytest; $i >= $ytest - $shipWidth + 1; $i--){ - if ((!isset($map[$i][$xtest]) + if ((!isset($map[$i][$xtest])) OR ($map[$i][$xtest] == 1)){ $top=false; break; @@ -95,7 +95,7 @@ switch($_POST['act']){ //vers le bas $bottom=true; for($y=$ytest; $i < $ytest + $shipWidth -1; $i++){ - if ((!isset($map[$i][$xtest]) + if ((!isset($map[$i][$xtest])) OR ($map[$i][$xtest] == 1)){ $bottom=false; break;