summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-08-02 19:49:22 +0000
committerfrosch <frosch@openttd.org>2009-08-02 19:49:22 +0000
commitaad988c99ad5002c34d378f548727ebeceb5ff5a (patch)
treef3b92c1b4e810a05ba172560d9efc4310bee3e55 /src
parent1c7a2cca23396dc33ad084938b0d59ad37f72922 (diff)
downloadopenttd-aad988c99ad5002c34d378f548727ebeceb5ff5a.tar.xz
(svn r17047) -Fix: Mark house tiles dirty when triggers were triggered.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_house.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index faaf4a6eb..9bab54571 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -583,6 +583,7 @@ bool NewHouseTileLoop(TileIndex tile)
}
SetHouseProcessingTime(tile, hs->processing_time);
+ MarkTileDirtyByTile(tile);
return true;
}
@@ -618,7 +619,11 @@ static void DoTriggerHouse(TileIndex tile, HouseTrigger trigger, byte base_rando
break;
case HOUSE_TRIGGER_TILE_LOOP_TOP:
- if (!first) break;
+ if (!first) {
+ /* The top tile is marked dirty by the usual TileLoop */
+ MarkTileDirtyByTile(tile);
+ break;
+ }
/* Random value of first tile already set. */
if (hs->building_flags & BUILDING_2_TILES_Y) DoTriggerHouse(TILE_ADDXY(tile, 0, 1), trigger, random_bits, false);
if (hs->building_flags & BUILDING_2_TILES_X) DoTriggerHouse(TILE_ADDXY(tile, 1, 0), trigger, random_bits, false);