Remove unused fields from struct TemplateVehicle

pull/91/head
Jonathan G Rennison 5 years ago
parent f5f72611c2
commit 13291899cd

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

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

Loading…
Cancel
Save