fix: not able to build new buildings

This commit is contained in:
Martin Ambrus
2017-11-25 13:11:22 +01:00
parent bc450c686e
commit 1169b4febb
+4 -1
View File
@@ -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 ) {