diff options
author | rubidium <rubidium@openttd.org> | 2007-09-28 21:24:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-28 21:24:25 +0000 |
commit | 09182386fb1281684b8f35aac349ef07d13b2646 (patch) | |
tree | b0d101f161a3c5692c94b90fbf31a20979bfd709 /src/industry_map.h | |
parent | 86dac1533b389de020eada43aa8b2b082d206047 (diff) | |
download | openttd-09182386fb1281684b8f35aac349ef07d13b2646.tar.xz |
(svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas.
Diffstat (limited to 'src/industry_map.h')
-rw-r--r-- | src/industry_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_map.h b/src/industry_map.h index 80c05cc09..370f9b37d 100644 --- a/src/industry_map.h +++ b/src/industry_map.h @@ -109,7 +109,7 @@ static inline void SetIndustryCompleted(TileIndex tile, bool isCompleted) static inline byte GetIndustryConstructionStage(TileIndex tile) { assert(IsTileType(tile, MP_INDUSTRY)); - return GB(_m[tile].m1, 0, 2); + return IsIndustryCompleted(tile) ? (byte)INDUSTRY_COMPLETED : GB(_m[tile].m1, 0, 2); } /** |