diff options
author | rubidium <rubidium@openttd.org> | 2008-04-05 12:01:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-05 12:01:34 +0000 |
commit | ba0a9538cf47445814c344ba27e13d399ef243ca (patch) | |
tree | ad12fc0f6d3af1973a3006e73eaa6ee14f7e23dc /src/ship_cmd.cpp | |
parent | c830c4a369507dba1d4c7baea80b761c0cf10e41 (diff) | |
download | openttd-ba0a9538cf47445814c344ba27e13d399ef243ca.tar.xz |
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 0d814003e..b886924b1 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -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))); |