diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 14:06:29 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-20 14:06:29 +0000 |
| commit | b77024de4351bcddee5c4781aa9fc031131f293b (patch) | |
| tree | c51d7c8add4c450a0b6e980da88830fa53215171 /game/vehicles/railloco.h | |
| parent | dos2unix shader sources (diff) | |
| download | ilt-b77024de4351bcddee5c4781aa9fc031131f293b.tar.bz2 ilt-b77024de4351bcddee5c4781aa9fc031131f293b.tar.xz ilt-b77024de4351bcddee5c4781aa9fc031131f293b.zip | |
Pass linters
Diffstat (limited to 'game/vehicles/railloco.h')
| -rw-r--r-- | game/vehicles/railloco.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/game/vehicles/railloco.h b/game/vehicles/railloco.h index 0d0425a..df5f970 100644 --- a/game/vehicles/railloco.h +++ b/game/vehicles/railloco.h @@ -1,11 +1,14 @@ #include "game/network/link.h" #include "game/vehicles/vehicle.h" #include "game/worldobject.h" +#include "gfx/gl/transform.h" #include "gfx/models/mesh.h" +#include <array> #include <memory> -#include <string> #include <vector> +class Shader; + class Texture; class RailVehicle : public Vehicle { public: @@ -42,7 +45,7 @@ public: private: void move(TickDuration dur); - Transform getBogeyPosition(float linkDist, float dist) const; + [[nodiscard]] Transform getBogeyPosition(float linkDist, float dist) const; void updateRailVehiclePosition(RailVehicle *, float trailBy) const; void updateWagons() const; }; |
