TBTR: No longer use idle vehicles in depots by default
This commit is contained in:
@@ -68,8 +68,10 @@ TemplateVehicle::TemplateVehicle(VehicleType ty, EngineID eid, byte subtypeflag,
|
|||||||
this->type = ty;
|
this->type = ty;
|
||||||
this->engine_type = eid;
|
this->engine_type = eid;
|
||||||
|
|
||||||
this->reuse_depot_vehicles = true;
|
this->reuse_depot_vehicles = false;
|
||||||
this->keep_remaining_vehicles = true;
|
this->keep_remaining_vehicles = false;
|
||||||
|
this->refit_as_template = true;
|
||||||
|
this->replace_old_only = false;
|
||||||
|
|
||||||
this->first = this;
|
this->first = this;
|
||||||
this->next = 0x0;
|
this->next = 0x0;
|
||||||
|
@@ -119,7 +119,6 @@ public:
|
|||||||
SpriteID colourmap; ///< NOSAVE: cached colour mapping
|
SpriteID colourmap; ///< NOSAVE: cached colour mapping
|
||||||
|
|
||||||
TemplateVehicle(VehicleType type = VEH_INVALID, EngineID e = INVALID_ENGINE, byte B = 0, Owner = _local_company);
|
TemplateVehicle(VehicleType type = VEH_INVALID, EngineID e = INVALID_ENGINE, byte B = 0, Owner = _local_company);
|
||||||
TemplateVehicle(EngineID, RailVehicleInfo*);
|
|
||||||
|
|
||||||
TemplateVehicle(EngineID eid)
|
TemplateVehicle(EngineID eid)
|
||||||
{
|
{
|
||||||
@@ -127,7 +126,7 @@ public:
|
|||||||
previous = nullptr;
|
previous = nullptr;
|
||||||
first = this;
|
first = this;
|
||||||
engine_type = eid;
|
engine_type = eid;
|
||||||
this->reuse_depot_vehicles = true;
|
this->reuse_depot_vehicles = false;
|
||||||
this->keep_remaining_vehicles = false;
|
this->keep_remaining_vehicles = false;
|
||||||
this->refit_as_template = true;
|
this->refit_as_template = true;
|
||||||
this->replace_old_only = false;
|
this->replace_old_only = false;
|
||||||
|
@@ -1154,7 +1154,7 @@ CommandCost CmdReplaceTemplateVehicle(TileIndex tile, DoCommandFlag flags, uint3
|
|||||||
VehicleID old_ID = INVALID_VEHICLE;
|
VehicleID old_ID = INVALID_VEHICLE;
|
||||||
|
|
||||||
bool restore_flags = false;
|
bool restore_flags = false;
|
||||||
bool reuse_depot_vehicles = true;
|
bool reuse_depot_vehicles = false;
|
||||||
bool keep_remaining_vehicles = false;
|
bool keep_remaining_vehicles = false;
|
||||||
bool refit_as_template = true;
|
bool refit_as_template = true;
|
||||||
bool replace_old_only = false;
|
bool replace_old_only = false;
|
||||||
|
Reference in New Issue
Block a user