mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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.
This commit is contained in:
parent
7de2096d1f
commit
521e8e858b
@ -83,7 +83,7 @@ static inline bool IsOwnedLandTile(TileIndex t)
|
|||||||
static inline bool IsCompanyHQ(TileIndex t)
|
static inline bool IsCompanyHQ(TileIndex t)
|
||||||
{
|
{
|
||||||
assert(IsTileType(t, MP_UNMOVABLE));
|
assert(IsTileType(t, MP_UNMOVABLE));
|
||||||
return IsInsideMM(GetUnmovableType(t), UNMOVABLE_HQ_NORTH, UNMOVABLE_HQ_END);
|
return HasBit(_m[t].m5, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user