summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-05 12:01:34 +0000
committerrubidium <rubidium@openttd.org>2008-04-05 12:01:34 +0000
commit5eb5889954e571c4b3d75e572667b867f12835e5 (patch)
treead12fc0f6d3af1973a3006e73eaa6ee14f7e23dc /src/roadveh_cmd.cpp
parent65fedf0cfb863232d198f4b9ab9cf355b3aa3c52 (diff)
downloadopenttd-5eb5889954e571c4b3d75e572667b867f12835e5.tar.xz
(svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 21081cef1..b021efc50 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -756,8 +756,9 @@ static void HandleBrokenRoadVeh(Vehicle *v)
TileIndex RoadVehicle::GetOrderStationLocation(StationID station)
{
- TileIndex dest = INVALID_TILE;
+ if (station == this->last_station_visited) this->last_station_visited = INVALID_STATION;
+ TileIndex dest = INVALID_TILE;
const RoadStop *rs = GetStation(station)->GetPrimaryRoadStop(this);
if (rs != NULL) {
uint mindist = MAX_UVALUE(uint);