fix maps limits

This commit is contained in:
Gnieark 2015-12-18 21:54:13 +01:00
parent d424cc35b6
commit b9da00c608

View File

@ -208,7 +208,7 @@ switch($_POST['act']){
break; break;
case "fight": case "fight":
// if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){ // 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{ // }else{
// echo "boaf".$_POST['width']."-".$_POST['height']; // echo "boaf".$_POST['width']."-".$_POST['height'];
// } // }