From 84b26ec926997f35431e59428a3d328ae2621b6d Mon Sep 17 00:00:00 2001 From: gnieark Date: Sat, 12 Dec 2015 10:41:35 +0100 Subject: [PATCH] debog --- src/arenas/Battleship/act.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index 844dd12..0d4f886 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -29,7 +29,7 @@ switch ($_POST['act']){ OR ($value > $p[2]) ) { - error(500,'wrong parameters 1'); + error(500,'wrong parameters'); die; } $postValues[$p[0]]=$value; @@ -40,6 +40,7 @@ switch ($_POST['act']){ $bot2Exists = false; foreach($bots as $bot){ if($bot['id'] == $_POST['bot1']){ + echo $bot['id']."|".$_POST['bot1']."\n"; $bot1 = $bot; $bot1Exists =true; }