summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-03 18:51:13 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-03 18:51:13 +0000
commit70e195126bd1ef0fa0f5c018865498babdf79dd6 (patch)
tree2c20a48ef15a2528148bf173730fdbf79940b8ed
parent85accd400b2bc6c2e14ce73fb4bfafcc1966db30 (diff)
downloadopenttd-70e195126bd1ef0fa0f5c018865498babdf79dd6.tar.xz
(svn r13981) -Fix [FS#AmmlersStillTooLazy]: Resetting construction stage counter reset more than it should.
-rw-r--r--src/industry_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industry_map.h b/src/industry_map.h
index 04be3513a..723b4c010 100644
--- a/src/industry_map.h
+++ b/src/industry_map.h
@@ -218,7 +218,8 @@ static inline void SetIndustryConstructionCounter(TileIndex tile, byte value)
static inline void ResetIndustryConstructionStage(TileIndex tile)
{
assert(IsTileType(tile, MP_INDUSTRY));
- _m[tile].m1 = 0;
+ SB(_m[tile].m1, 0, 2, 0);
+ SB(_m[tile].m1, 7, 1, 0);
}
/**