Changeset - r10012:48a6b9de4af5
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-08-25 16:41:00
belugas@openttd.org
(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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/unmovable_map.h
Show inline comments
 
@@ -83,7 +83,7 @@ static inline bool IsOwnedLandTile(TileI
 
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);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)