summaryrefslogtreecommitdiff
path: root/game/vehicles/railVehicle.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 22:03:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 22:03:10 +0000
commit423328de708ffa93961c329de13445ce2da6e328 (patch)
tree6b4500d0d6af5ee5bff967233d82bfae078b279c /game/vehicles/railVehicle.h
parentRemove more use of legacy types from camera controller (diff)
downloadilt-423328de708ffa93961c329de13445ce2da6e328.tar.bz2
ilt-423328de708ffa93961c329de13445ce2da6e328.tar.xz
ilt-423328de708ffa93961c329de13445ce2da6e328.zip
Remove more use of legacy types and unnecessary pointers from selectable interface
Diffstat (limited to 'game/vehicles/railVehicle.h')
-rw-r--r--game/vehicles/railVehicle.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/game/vehicles/railVehicle.h b/game/vehicles/railVehicle.h
index 8cbc49d..f6e4764 100644
--- a/game/vehicles/railVehicle.h
+++ b/game/vehicles/railVehicle.h
@@ -6,7 +6,6 @@
#include <game/selectable.h>
#include <glm/glm.hpp>
#include <memory>
-#include <utility>
class Ray;
class Train;
@@ -17,7 +16,7 @@ public:
void move(const Train *, float & trailBy);
- [[nodiscard]] bool intersectRay(const Ray &, BaryPosition *, float *) const override;
+ [[nodiscard]] bool intersectRay(const Ray &, BaryPosition &, RelativeDistance &) const override;
RailVehicleClassPtr rvClass;
using LV = RailVehicleClass::LocationVertex;