summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-19 20:03:10 +0000
committerfrosch <frosch@openttd.org>2013-06-19 20:03:10 +0000
commit6df6b163201ad541fb4e1829bb671c46eb7e9d0d (patch)
tree2c8fd8226a199ca70a66e89091710d858fa063f8 /src
parent6794456249776defa40cc807c1e4f98b829f7edb (diff)
downloadopenttd-6df6b163201ad541fb4e1829bb671c46eb7e9d0d.tar.xz
(svn r25429) -Fix [FS#5603] (r25140): When town creation failed, removing remnants of the construction failed on protected houses.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_house.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index d8cd3b767..2f03060a6 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -535,9 +535,9 @@ bool CanDeleteHouse(TileIndex tile)
{
const HouseSpec *hs = HouseSpec::Get(GetHouseType(tile));
- /* Humans are always allowed to remove buildings, as is water and
+ /* Humans are always allowed to remove buildings, as is water and disasters and
* anyone using the scenario editor. */
- if (Company::IsValidHumanID(_current_company) || _current_company == OWNER_WATER || _current_company == OWNER_NONE) {
+ if (Company::IsValidHumanID(_current_company) || _current_company == OWNER_WATER || _current_company == OWNER_NONE || _game_mode == GM_EDITOR || _generating_world) {
return true;
}