mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-28 22:27:15 +00:00
Fixed a demolition bug
Resource fields can't be demolished anymore
This commit is contained in:
@@ -19,7 +19,7 @@ if ($session->alliance) {
|
|||||||
|
|
||||||
if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) {
|
if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) {
|
||||||
if($session->access != BANNED){
|
if($session->access != BANNED){
|
||||||
if($_REQUEST["type"] != null) {
|
if($_REQUEST["type"] != null && ($_REQUEST["type"] >= 19 && $_REQUEST["type"] <= 40 || $_REQUEST["type"] == 99)) {
|
||||||
$type = $_REQUEST['type'];
|
$type = $_REQUEST['type'];
|
||||||
$demolish_permitted = $database->addDemolition($village->wid,$type);
|
$demolish_permitted = $database->addDemolition($village->wid,$type);
|
||||||
if ($demolish_permitted === true) {
|
if ($demolish_permitted === true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user