From 927c4a0fe8b836fe88ca0636d2249016501dc9c3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 1 Jul 2009 14:51:05 +0000 Subject: (svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated --- src/industry_cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/industry_cmd.cpp') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 0f7bf1a7c..92d510cd2 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -141,6 +141,10 @@ Industry::~Industry() if (GetIndustryIndex(tile_cur) == this->index) { /* MakeWaterKeepingClass() can also handle 'land' */ MakeWaterKeepingClass(tile_cur, OWNER_NONE); + + /* MakeWaterKeepingClass() doesn't remove animation if the tiles + * become watery, but be on the safe side an always remote it. */ + DeleteAnimatedTile(tile_cur); } } else if (IsTileType(tile_cur, MP_STATION) && IsOilRig(tile_cur)) { DeleteOilRig(tile_cur); -- cgit v1.2.3-70-g09d2