TBTR: No longer use idle vehicles in depots by default

pull/212/head
Jonathan G Rennison 3 years ago
parent 515aeb04e0
commit dd16145b03

@ -68,8 +68,10 @@ TemplateVehicle::TemplateVehicle(VehicleType ty, EngineID eid, byte subtypeflag,
this->type = ty;
this->engine_type = eid;
this->reuse_depot_vehicles = true;
this->keep_remaining_vehicles = true;
this->reuse_depot_vehicles = false;
this->keep_remaining_vehicles = false;
this->refit_as_template = true;
this->replace_old_only = false;
this->first = this;
this->next = 0x0;

@ -119,7 +119,6 @@ public:
SpriteID colourmap; ///< NOSAVE: cached colour mapping
TemplateVehicle(VehicleType type = VEH_INVALID, EngineID e = INVALID_ENGINE, byte B = 0, Owner = _local_company);
TemplateVehicle(EngineID, RailVehicleInfo*);
TemplateVehicle(EngineID eid)
{
@ -127,7 +126,7 @@ public:
previous = nullptr;
first = this;
engine_type = eid;
this->reuse_depot_vehicles = true;
this->reuse_depot_vehicles = false;
this->keep_remaining_vehicles = false;
this->refit_as_template = true;
this->replace_old_only = false;

@ -1154,7 +1154,7 @@ CommandCost CmdReplaceTemplateVehicle(TileIndex tile, DoCommandFlag flags, uint3
VehicleID old_ID = INVALID_VEHICLE;
bool restore_flags = false;
bool reuse_depot_vehicles = true;
bool reuse_depot_vehicles = false;
bool keep_remaining_vehicles = false;
bool refit_as_template = true;
bool replace_old_only = false;

Loading…
Cancel
Save