(svn r9794) -Codechange: refactor the question whether a vehicle can be loaded into LoadUnloadVehicle instead of duplicating it for each vehicle.
This commit is contained in:
@@ -761,10 +761,7 @@ static void HandleRoadVehLoading(Vehicle *v)
|
||||
|
||||
if (--v->load_unload_time_rem != 0) return;
|
||||
|
||||
if (CanFillVehicle(v)) {
|
||||
LoadUnloadVehicle(v);
|
||||
return;
|
||||
}
|
||||
if (LoadUnloadVehicle(v)) return;
|
||||
|
||||
b = v->current_order;
|
||||
v->LeaveStation();
|
||||
|
Reference in New Issue
Block a user