(svn r18700) -Fix: when deleting an industry on water (oil rigs) the tiles on water were not marked dirty

This commit is contained in:
yexo 2010-01-03 19:33:12 +00:00
parent 666c856457
commit 47a11fff20
1 changed files with 2 additions and 0 deletions

View File

@ -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);