From 521e8e858bbdc057b1633224039d5760876ca1bf Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 25 Aug 2008 16:41:00 +0000 Subject: (svn r14171) -Codechange: Make the test for HQ a bit lighter. The presence of a HQ is only dictated by the 7th bit been set. The rest of the data is related to the size and the type. --- src/unmovable_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unmovable_map.h') diff --git a/src/unmovable_map.h b/src/unmovable_map.h index 8c2b55d09..c814096d0 100644 --- a/src/unmovable_map.h +++ b/src/unmovable_map.h @@ -83,7 +83,7 @@ static inline bool IsOwnedLandTile(TileIndex t) static inline bool IsCompanyHQ(TileIndex t) { assert(IsTileType(t, MP_UNMOVABLE)); - return IsInsideMM(GetUnmovableType(t), UNMOVABLE_HQ_NORTH, UNMOVABLE_HQ_END); + return HasBit(_m[t].m5, 7); } /** -- cgit v1.2.3-54-g00ecf