summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-25 16:10:33 +0000
committertruelight <truelight@openttd.org>2005-03-25 16:10:33 +0000
commit05dbeaeba4774d878f574d12d62acae671d9f703 (patch)
treea47b0ae6decec1f8e0f201fa0c1725ed64aeef7e
parent339785dad7a0858fe04a5db6826d5f6b7eca2323 (diff)
downloadopenttd-05dbeaeba4774d878f574d12d62acae671d9f703.tar.xz
(svn r2065) -Fix: reverted revision 2044, because it had more negative effects than positive
-rw-r--r--economy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/economy.c b/economy.c
index 2d0f17b7b..486b8ea78 100644
--- a/economy.c
+++ b/economy.c
@@ -1347,6 +1347,9 @@ int LoadUnloadVehicle(Vehicle *v)
v->cur_speed = 0;
+ old_player = _current_player;
+ _current_player = v->owner;
+
st = GetStation(last_visited = v->last_station_visited);
for (; v != NULL; v = v->next) {
@@ -1453,9 +1456,6 @@ int LoadUnloadVehicle(Vehicle *v)
TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY);
}
- old_player = _current_player;
- _current_player = v->owner;
-
if (result != 0) {
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);