|
|
@ -1346,8 +1346,6 @@ int LoadUnloadVehicle(Vehicle *v)
|
|
|
|
assert(v->current_order.type == OT_LOADING);
|
|
|
|
assert(v->current_order.type == OT_LOADING);
|
|
|
|
|
|
|
|
|
|
|
|
v->cur_speed = 0;
|
|
|
|
v->cur_speed = 0;
|
|
|
|
old_player = _current_player;
|
|
|
|
|
|
|
|
_current_player = v->owner;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st = GetStation(last_visited = v->last_station_visited);
|
|
|
|
st = GetStation(last_visited = v->last_station_visited);
|
|
|
|
|
|
|
|
|
|
|
@ -1455,6 +1453,9 @@ int LoadUnloadVehicle(Vehicle *v)
|
|
|
|
TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY);
|
|
|
|
TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
old_player = _current_player;
|
|
|
|
|
|
|
|
_current_player = v->owner;
|
|
|
|
|
|
|
|
|
|
|
|
if (result != 0) {
|
|
|
|
if (result != 0) {
|
|
|
|
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
|
|
|
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
|
|
|
|
|
|
|
|
|
|
|