diff options
Diffstat (limited to 'game/vehicles')
-rw-r--r-- | game/vehicles/linkHistory.h | 5 | ||||
-rw-r--r-- | game/vehicles/railVehicle.h | 5 | ||||
-rw-r--r-- | game/vehicles/railVehicleClass.h | 5 | ||||
-rw-r--r-- | game/vehicles/train.h | 5 | ||||
-rw-r--r-- | game/vehicles/vehicle.h | 5 |
5 files changed, 5 insertions, 20 deletions
diff --git a/game/vehicles/linkHistory.h b/game/vehicles/linkHistory.h index 31d0023..6944727 100644 --- a/game/vehicles/linkHistory.h +++ b/game/vehicles/linkHistory.h @@ -1,5 +1,4 @@ -#ifndef LINKHISTORY_H -#define LINKHISTORY_H +#pragma once #include <game/network/link.h> #include <utility> @@ -17,5 +16,3 @@ private: std::vector<WEntry> links; float totalLen {0.F}; }; - -#endif diff --git a/game/vehicles/railVehicle.h b/game/vehicles/railVehicle.h index 55cb6a2..f52b154 100644 --- a/game/vehicles/railVehicle.h +++ b/game/vehicles/railVehicle.h @@ -1,5 +1,4 @@ -#ifndef RAILVEHICLE_H -#define RAILVEHICLE_H +#pragma once #include "gfx/renderable.h" #include "railVehicleClass.h" @@ -28,5 +27,3 @@ public: std::array<Location, 2> bogies; }; using RailVehiclePtr = std::unique_ptr<RailVehicle>; - -#endif diff --git a/game/vehicles/railVehicleClass.h b/game/vehicles/railVehicleClass.h index fb881b9..8f82fd2 100644 --- a/game/vehicles/railVehicleClass.h +++ b/game/vehicles/railVehicleClass.h @@ -1,5 +1,4 @@ -#ifndef RAILVEHICLECLASS_H -#define RAILVEHICLECLASS_H +#pragma once #include "gfx/models/mesh.h" #include <array> @@ -30,5 +29,3 @@ private: static float objectLength(ObjParser & o); }; using RailVehicleClassPtr = std::shared_ptr<RailVehicleClass>; - -#endif diff --git a/game/vehicles/train.h b/game/vehicles/train.h index c823aed..68f9fbf 100644 --- a/game/vehicles/train.h +++ b/game/vehicles/train.h @@ -1,5 +1,4 @@ -#ifndef TRAIN_H -#define TRAIN_H +#pragma once #include "chronology.hpp" #include "game/activities/go.h" // IWYU pragma: keep @@ -36,5 +35,3 @@ public: [[nodiscard]] Location getBogiePosition(float linkDist, float dist) const; }; - -#endif diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 3ddeac5..24557b5 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -1,5 +1,4 @@ -#ifndef VEHICLE_H -#define VEHICLE_H +#pragma once #include "chronology.hpp" #include "linkHistory.h" @@ -29,5 +28,3 @@ protected: LinkHistory linkHist; }; using VehicleWPtr = std::weak_ptr<Vehicle>; - -#endif |