From b9da00c608446e6c521bbb8977a20beda9307318 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 18 Dec 2015 21:54:13 +0100 Subject: [PATCH] fix maps limits --- html/StupidIABattleship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index 1540083..85d17d4 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -208,7 +208,7 @@ switch($_POST['act']){ break; case "fight": // if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){ - echo rand(0,$_POST['width']).",".rand(0,$_POST['height']); + echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1); // }else{ // echo "boaf".$_POST['width']."-".$_POST['height']; // }