diff options
author | belugas <belugas@openttd.org> | 2008-08-25 16:41:00 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-08-25 16:41:00 +0000 |
commit | bc7a87613f6d316ed276006e08ecf9e59cdd1558 (patch) | |
tree | ba61d605ee50d2bdc55b67f54cf55f1ea89254d9 /src | |
parent | 6a742cef5fe40e3d4d589c4fceb8598735696839 (diff) | |
download | openttd-bc7a87613f6d316ed276006e08ecf9e59cdd1558.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/unmovable_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /** |