Changeset - r10805:60ff98650083
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2009-01-18 17:03:57
rubidium@openttd.org
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_airport.cpp
Show inline comments
 
@@ -98,7 +98,7 @@
 
	if (st->owner != _current_company) return INVALID_TILE;
 
	if ((st->facilities & FACIL_AIRPORT) == 0) return INVALID_TILE;
 

	
 
	return ::ToTileIndexDiff(st->Airport()->airport_depots[0]) + st->xy;
 
	return ::ToTileIndexDiff(st->Airport()->airport_depots[0]) + st->airport_tile;
 
}
 

	
 
/* static */ AIAirport::AirportType AIAirport::GetAirportType(TileIndex tile)
0 comments (0 inline, 0 general)