debug php
This commit is contained in:
parent
6ded637d78
commit
d7c4688a52
|
@ -85,7 +85,7 @@ switch($_POST['act']){
|
|||
$top=false;
|
||||
}else{
|
||||
$top=true;
|
||||
for($i = $ytest; $i > $ytest - $shipWidth + 1; $i--){
|
||||
for($i = $ytest; $i >= $ytest - $shipWidth + 1; $i--){
|
||||
if($map[$i][$xtest] == 1){
|
||||
$top=false;
|
||||
break;
|
||||
|
@ -124,7 +124,7 @@ switch($_POST['act']){
|
|||
$left=false;
|
||||
}else{
|
||||
$left=true;
|
||||
for($i = $xtest; $i > $xtest - $shipWidth + 1; $i--){
|
||||
for($i = $xtest; $i >= $xtest - $shipWidth + 1; $i--){
|
||||
if($map[$ytest][$i] == 1){
|
||||
$left= false;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user