changeset 10012:3ab1d6da5fea draft

(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.
author belugas <belugas@openttd.org>
date Mon, 25 Aug 2008 16:41:00 +0000
parents a348159c1eca
children aaedbef31efc
files src/unmovable_map.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/unmovable_map.h
+++ b/src/unmovable_map.h
@@ -83,7 +83,7 @@
 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);
 }
 
 /**