Remove unused fields from struct TemplateVehicle

This commit is contained in:
Jonathan G Rennison
2019-05-16 02:11:14 +01:00
parent f5f72611c2
commit 13291899cd
2 changed files with 0 additions and 3 deletions

View File

@@ -93,8 +93,6 @@ public:
bool replace_old_only; bool replace_old_only;
// Things derived from a virtual train // Things derived from a virtual train
TemplateVehicle *other_multiheaded_part; ///< Multiheaded Engine support
Money value; ///< Value of the vehicle
OwnerByte owner; OwnerByte owner;
EngineID engine_type; ///< The type of engine used for this vehicle. EngineID engine_type; ///< The type of engine used for this vehicle.

View File

@@ -150,7 +150,6 @@ void SetupTemplateVehicleFromVirtual(TemplateVehicle *tmp, TemplateVehicle *prev
} }
tmp->railtype = virt->railtype; tmp->railtype = virt->railtype;
tmp->owner = virt->owner; tmp->owner = virt->owner;
tmp->value = virt->value;
// set the subtype but also clear the virtual flag while doing it // set the subtype but also clear the virtual flag while doing it
tmp->subtype = virt->subtype & ~(1 << GVSF_VIRTUAL); tmp->subtype = virt->subtype & ~(1 << GVSF_VIRTUAL);