.
This commit is contained in:
parent
a5c908f930
commit
46600504cd
|
@ -30,16 +30,16 @@ switch($params['action']){
|
||||||
list($x,$y) = explode(",",$myCoords);
|
list($x,$y) = explode(",",$myCoords);
|
||||||
|
|
||||||
$availablesDirs = array();
|
$availablesDirs = array();
|
||||||
if in_array((($x + 1).",".$y), $busyCells){
|
if in_array(($x + 1).",".$y, $busyCells){
|
||||||
$availablesDirs[] = "x+";
|
$availablesDirs[] = "x+";
|
||||||
}
|
}
|
||||||
if in_array((($x -1 ).",".$y), $busyCells){
|
if in_array(($x -1 ).",".$y, $busyCells){
|
||||||
$availablesDirs[] = "x-";
|
$availablesDirs[] = "x-";
|
||||||
}
|
}
|
||||||
if in_array(($x.",".($y + 1)), $busyCells){
|
if in_array($x.",".($y + 1), $busyCells){
|
||||||
$availablesDirs[] = "y+";
|
$availablesDirs[] = "y+";
|
||||||
}
|
}
|
||||||
if in_array(($x.",".($y - 1)), $busyCells){
|
if in_array($x.",".($y - 1), $busyCells){
|
||||||
$availablesDirs[] = "y-";
|
$availablesDirs[] = "y-";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user