equal
deleted
inserted
replaced
1344 bool completely_empty = true; |
1344 bool completely_empty = true; |
1345 |
1345 |
1346 assert(v->current_order.type == OT_LOADING); |
1346 assert(v->current_order.type == OT_LOADING); |
1347 |
1347 |
1348 v->cur_speed = 0; |
1348 v->cur_speed = 0; |
1349 old_player = _current_player; |
|
1350 _current_player = v->owner; |
|
1351 |
1349 |
1352 st = GetStation(last_visited = v->last_station_visited); |
1350 st = GetStation(last_visited = v->last_station_visited); |
1353 |
1351 |
1354 for (; v != NULL; v = v->next) { |
1352 for (; v != NULL; v = v->next) { |
1355 if (v->cargo_cap == 0) continue; |
1353 if (v->cargo_cap == 0) continue; |
1453 |
1451 |
1454 if (completely_empty) { |
1452 if (completely_empty) { |
1455 TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY); |
1453 TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY); |
1456 } |
1454 } |
1457 |
1455 |
|
1456 old_player = _current_player; |
|
1457 _current_player = v->owner; |
|
1458 |
1458 if (result != 0) { |
1459 if (result != 0) { |
1459 InvalidateWindow(WC_VEHICLE_DETAILS, v->index); |
1460 InvalidateWindow(WC_VEHICLE_DETAILS, v->index); |
1460 |
1461 |
1461 if (result & 2) |
1462 if (result & 2) |
1462 InvalidateWindow(WC_STATION_VIEW, last_visited); |
1463 InvalidateWindow(WC_STATION_VIEW, last_visited); |