summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-03 19:33:12 +0000
committeryexo <yexo@openttd.org>2010-01-03 19:33:12 +0000
commit47a11fff20d78e5f0309c1bf7bd60e97cebae6a5 (patch)
tree46dba06ced852bea27ab662d1550f6e600cbecbd /src
parent666c856457ebda1a4261d0da95c11ecefc04708f (diff)
downloadopenttd-47a11fff20d78e5f0309c1bf7bd60e97cebae6a5.tar.xz
(svn r18700) -Fix: when deleting an industry on water (oil rigs) the tiles on water were not marked dirty
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index bf3455b3e..c495f0399 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -153,6 +153,8 @@ Industry::~Industry()
/* MakeWaterKeepingClass() doesn't remove animation if the tiles
* become watery, but be on the safe side an always remote it. */
DeleteAnimatedTile(tile_cur);
+
+ MarkTileDirtyByTile(tile);
}
} else if (IsTileType(tile_cur, MP_STATION) && IsOilRig(tile_cur)) {
DeleteOilRig(tile_cur);