From 46600504cd78b63758a72771ef34c19f110c8159 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 4 Jul 2016 07:58:55 +0200 Subject: [PATCH] . --- stupidIATron.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stupidIATron.php b/stupidIATron.php index 9ebd476..54dbebe 100644 --- a/stupidIATron.php +++ b/stupidIATron.php @@ -30,16 +30,16 @@ switch($params['action']){ list($x,$y) = explode(",",$myCoords); $availablesDirs = array(); - if in_array((($x + 1).",".$y), $busyCells){ + if in_array(($x + 1).",".$y, $busyCells){ $availablesDirs[] = "x+"; } - if in_array((($x -1 ).",".$y), $busyCells){ + if in_array(($x -1 ).",".$y, $busyCells){ $availablesDirs[] = "x-"; } - if in_array(($x.",".($y + 1)), $busyCells){ + if in_array($x.",".($y + 1), $busyCells){ $availablesDirs[] = "y+"; } - if in_array(($x.",".($y - 1)), $busyCells){ + if in_array($x.",".($y - 1), $busyCells){ $availablesDirs[] = "y-"; }