summaryrefslogtreecommitdiff
path: root/unmovable_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'unmovable_map.h')
-rw-r--r--unmovable_map.h9
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;
}