From 3ecd8bd2eec6fdbaeb71b88b1b9a7e7cbcef6681 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 26 Mar 2006 19:03:03 +0000 Subject: (svn r4119) There's one more possible hangar tile. Check for this in IsHangar(), too --- station_map.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'station_map.h') 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) -- cgit v1.2.3-54-g00ecf