diff options
Diffstat (limited to 'game/vehicles/railVehicleClass.cpp')
-rw-r--r-- | game/vehicles/railVehicleClass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp index 71890b8..83eb9a0 100644 --- a/game/vehicles/railVehicleClass.cpp +++ b/game/vehicles/railVehicleClass.cpp @@ -12,6 +12,7 @@ #include <lib/resource.h> #include <location.hpp> #include <map> +#include <maths.h> #include <memory> #include <set> #include <string> @@ -24,7 +25,8 @@ RailVehicleClass::RailVehicleClass(const std::string & name) : { } -RailVehicleClass::RailVehicleClass(std::unique_ptr<ObjParser> o, std::shared_ptr<Texture> t) : texture {std::move(t)} +RailVehicleClass::RailVehicleClass(std::unique_ptr<ObjParser> o, std::shared_ptr<Texture> t) : + texture {std::move(t)}, maxSpeed(95._mph) { wheelBase = bogieOffset(*o); length = objectLength(*o); |