From b21ee889fec9b8d197692969855cb54675edfa6d Mon Sep 17 00:00:00 2001 From: ludde Date: Fri, 15 Jul 2005 12:16:16 +0000 Subject: (svn r2570) Fix: Removed some code that had no effect. --- industry_cmd.c | 3 +-- town_cmd.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/industry_cmd.c b/industry_cmd.c index fab71b42c..6ed9446b0 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -821,8 +821,7 @@ static void TileLoop_Industry(TileIndex tile) Industry *i = GetIndustry(_m[tile].m2); if (i->was_cargo_delivered) { i->was_cargo_delivered = false; - if ((_m[tile].m4|_m[tile].m3) != 0) - _m[tile].m4 = 0; + _m[tile].m4 = 0; AddAnimatedTile(tile); } } diff --git a/town_cmd.c b/town_cmd.c index 20e29569e..ad394b620 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -159,8 +159,7 @@ static void AnimateTile_Town(TileIndex tile) if (_tick_counter & 3) return; - if (_m[tile].m4 != 4 && _m[tile].m4 != 5) - return; + assert(_m[tile].m4 == 4 || _m[tile].m4 == 5); if (!((old=_m[tile].owner)&0x80)) { _m[tile].owner |= 0x80; -- cgit v1.2.3-70-g09d2