From 1169b4febb5bd05c63c8b28230f01ea64e8be833 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 25 Nov 2017 13:11:22 +0100 Subject: [PATCH] fix: not able to build new buildings --- GameEngine/Building.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GameEngine/Building.php b/GameEngine/Building.php index 41b7f3b4..94c0808c 100755 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -83,7 +83,10 @@ class Building { ($page == 'dorf2.php' && $id > 4) ) && // check that we're not trying to change a standing building type - ($levels['f'.$tid.'t'] == $id) + ( + $levels['f'.$tid.'t'] == $id || + $levels['f'.$tid.'t'] == 0 + ) ) { if ( $this->checkResource( $id, $tid ) != 4 ) { if ( $tid >= 19 ) {