(svn r23087) -Feature: Auto-refitting of vehicles during loading at a station when the vehicle allows it.

This commit is contained in:
michi_cc
2011-11-04 00:38:51 +00:00
parent ffca761cad
commit 886bd3c4c7
7 changed files with 93 additions and 18 deletions

View File

@@ -142,7 +142,7 @@ static bool VerifyAutoreplaceRefitForOrders(const Vehicle *v, EngineID engine_ty
const Order *o;
const Vehicle *u = (v->type == VEH_TRAIN) ? v->First() : v;
FOR_VEHICLE_ORDERS(u, o) {
if (!o->IsRefit()) continue;
if (!o->IsRefit() || o->IsAutoRefit()) continue;
CargoID cargo_type = o->GetRefitCargo();
if (!HasBit(union_refit_mask_a, cargo_type)) continue;