changeset 3337:c5fd31a49d3c draft

(svn r4119) There's one more possible hangar tile. Check for this in IsHangar(), too
author tron <tron@openttd.org>
date Sun, 26 Mar 2006 19:03:03 +0000
parents 03be207dd9fb
children 06437a20b9e4
files station_map.h
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/station_map.h
+++ b/station_map.h
@@ -43,7 +43,8 @@
 
 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 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)