summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-26 19:03:03 +0000
committertron <tron@openttd.org>2006-03-26 19:03:03 +0000
commit8f60df1817b9d45f8baa5ab96ab9affb6a7025f0 (patch)
treefc9f6b6ee016808773d866d6823dfe3efd21eaf1
parent95adeec12709137102e65fc7e2996b3f742d25f1 (diff)
downloadopenttd-8f60df1817b9d45f8baa5ab96ab9affb6a7025f0.tar.xz
(svn r4119) There's one more possible hangar tile. Check for this in IsHangar(), too
-rw-r--r--station_map.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/station_map.h b/station_map.h
index 759c79c2f..84693f9d9 100644
--- a/station_map.h
+++ b/station_map.h
@@ -43,7 +43,8 @@ enum {
typedef enum HangarTiles {
HANGAR_TILE_0 = 32,
- HANGAR_TILE_1 = 65
+ HANGAR_TILE_1 = 65,
+ HANGAR_TILE_2 = 86
} HangarTiles;
typedef enum StationType {
@@ -66,7 +67,10 @@ static inline bool IsRailwayStation(TileIndex t)
static inline bool IsHangar(TileIndex t)
{
- return _m[t].m5 == HANGAR_TILE_0 || _m[t].m5 == HANGAR_TILE_1;
+ return
+ _m[t].m5 == HANGAR_TILE_0 ||
+ _m[t].m5 == HANGAR_TILE_1 ||
+ _m[t].m5 == HANGAR_TILE_2;
}
static inline bool IsAirport(TileIndex t)