summaryrefslogtreecommitdiff
path: root/station_map.h
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
commit3ecd8bd2eec6fdbaeb71b88b1b9a7e7cbcef6681 (patch)
treefc9f6b6ee016808773d866d6823dfe3efd21eaf1 /station_map.h
parent369cba323061ca4c9703b950f9420717f5cc638f (diff)
downloadopenttd-3ecd8bd2eec6fdbaeb71b88b1b9a7e7cbcef6681.tar.xz
(svn r4119) There's one more possible hangar tile. Check for this in IsHangar(), too
Diffstat (limited to 'station_map.h')
-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)