Merge pull request #168 from cosme12/patch-3

Building bugs
This commit is contained in:
Shadow
2015-04-08 08:09:25 +03:00
+5
View File
@@ -37,6 +37,11 @@ if(isset($_GET['id'])) {
if (!ctype_digit(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']))){
$_GET['id'] = "1";
}
$checkBuildings = array(0,16,17,25,26,27);
if($_GET['id'] < 19 || !in_array($_GET['gid'], $checkBuildings)){
$_GET['t'] = "";
$_GET['s'] = "";
}
if($village->resarray['f'.$_GET['id'].'t'] == 17) {
$market->procRemove($_GET);
}