diff options
author | Darkvater <Darkvater@openttd.org> | 2006-05-01 13:24:37 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-05-01 13:24:37 +0000 |
commit | d799c99152b604121b3cb854497533e8283ca7d1 (patch) | |
tree | 00962c5fc0c96e1fd8915f0f13ae27d2676d4536 /unmovable_map.h | |
parent | 53d27e262977a1431112e5c66fe495f1de1ef81c (diff) | |
download | openttd-d799c99152b604121b3cb854497533e8283ca7d1.tar.xz |
(svn r4648) - Fix (r4196): Company HQ's were not upgraded during the monthly loops.
Diffstat (limited to 'unmovable_map.h')
-rw-r--r-- | unmovable_map.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unmovable_map.h b/unmovable_map.h index d8ee49a0b..c34e6c590 100644 --- a/unmovable_map.h +++ b/unmovable_map.h @@ -66,12 +66,13 @@ static inline byte GetCompanyHQSection(TileIndex t) static inline void EnlargeCompanyHQ(TileIndex t, byte size) { + size *= 4; if (size <= _m[t].m5 - UNMOVABLE_HQ_NORTH) return; - _m[t + TileDiffXY(0, 0)].m5 = UNMOVABLE_HQ_NORTH + size * 4; - _m[t + TileDiffXY(0, 1)].m5 = UNMOVABLE_HQ_WEST + size * 4; - _m[t + TileDiffXY(1, 0)].m5 = UNMOVABLE_HQ_EAST + size * 4; - _m[t + TileDiffXY(1, 1)].m5 = UNMOVABLE_HQ_SOUTH + size * 4; + _m[t + TileDiffXY(0, 0)].m5 = UNMOVABLE_HQ_NORTH + size; + _m[t + TileDiffXY(0, 1)].m5 = UNMOVABLE_HQ_WEST + size; + _m[t + TileDiffXY(1, 0)].m5 = UNMOVABLE_HQ_EAST + size; + _m[t + TileDiffXY(1, 1)].m5 = UNMOVABLE_HQ_SOUTH + size; } |