(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
This commit is contained in:
@@ -29,7 +29,7 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine
|
||||
switch (type) {
|
||||
case VEH_TRAIN:
|
||||
if (IsArticulatedPart(v) || IsRearDualheaded(v)) continue;
|
||||
if (((Train *)v)->u.rail.track != TRACK_BIT_DEPOT) continue;
|
||||
if (((Train *)v)->track != TRACK_BIT_DEPOT) continue;
|
||||
if (wagons != NULL && IsFreeWagon(v->First())) {
|
||||
if (individual_wagons || IsFreeWagon(v)) *wagons->Append() = v;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user