(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.

This commit is contained in:
rubidium
2008-04-05 12:01:34 +00:00
parent 65fedf0cfb
commit 5eb5889954
7 changed files with 75 additions and 88 deletions

View File

@@ -244,6 +244,8 @@ void Ship::PlayLeaveStationSound() const
TileIndex Ship::GetOrderStationLocation(StationID station)
{
if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION;
Station *st = GetStation(station);
if (st->dock_tile != 0) {
return TILE_ADD(st->dock_tile, ToTileIndexDiff(GetDockOffset(st->dock_tile)));