Fixed a building bug

You can no longer access to inexistent building ids
This commit is contained in:
Pietro
2018-04-03 14:40:23 +02:00
committed by GitHub
parent 49ebbee747
commit a9c8fc6b48
+2 -2
View File
@@ -22,8 +22,8 @@ if ( isset( $_GET['newdid'] ) ) {
header( "Location: " . $_SERVER['PHP_SELF'] . ( isset( $_GET['id'] ) ? '?id=' . $_GET['id'] : ( isset( $_GET['gid'] ) ? '?gid=' . $_GET['gid'] : '' ) ) );
exit;
}
if ( isset( $_GET['id'] ) && $_GET['id'] == 99 && $village->natar == 0 ) {
header( "Location: dorf2.php" );
if (isset($_GET['id']) && ($_GET['id'] < 1 || $_GET['id'] > 40 && ($_GET['id'] == 99 && $village->natar == 0 || $_GET['id'] != 99))) {
header("Location: dorf2.php");
exit;
}