summaryrefslogtreecommitdiff
path: root/src
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
commite434323d3883096359f6fc204583d1f07e7f2129 (patch)
tree2c20a48ef15a2528148bf173730fdbf79940b8ed /src
parente1451e1124830f3fbbf883cc4de1338cfc866cb1 (diff)
downloadopenttd-e434323d3883096359f6fc204583d1f07e7f2129.tar.xz
(svn r13981) -Fix [FS#AmmlersStillTooLazy]: Resetting construction stage counter reset more than it should.
Diffstat (limited to 'src')
-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);
}
/**