mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r4119) There's one more possible hangar tile. Check for this in IsHangar(), too
This commit is contained in:
parent
95adeec127
commit
8f60df1817
|
@ -43,7 +43,8 @@ enum {
|
||||||
|
|
||||||
typedef enum HangarTiles {
|
typedef enum HangarTiles {
|
||||||
HANGAR_TILE_0 = 32,
|
HANGAR_TILE_0 = 32,
|
||||||
HANGAR_TILE_1 = 65
|
HANGAR_TILE_1 = 65,
|
||||||
|
HANGAR_TILE_2 = 86
|
||||||
} HangarTiles;
|
} HangarTiles;
|
||||||
|
|
||||||
typedef enum StationType {
|
typedef enum StationType {
|
||||||
|
@ -66,7 +67,10 @@ static inline bool IsRailwayStation(TileIndex t)
|
||||||
|
|
||||||
static inline bool IsHangar(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)
|
static inline bool IsAirport(TileIndex t)
|
||||||
|
|
Loading…
Reference in New Issue