From 92cba8dfe1034aa6fe7f2178183411a14efcd983 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 15 Jan 2022 11:41:27 +0000 Subject: We know the last param is distance now --- game/vehicles/train.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/vehicles/train.cpp') diff --git a/game/vehicles/train.cpp b/game/vehicles/train.cpp index 05915c4..d1122f8 100644 --- a/game/vehicles/train.cpp +++ b/game/vehicles/train.cpp @@ -26,9 +26,9 @@ Train::getBogiePosition(float linkDist, float dist) const } bool -Train::intersectRay(const Ray & ray, glm::vec2 * baryPos, float * eh) const +Train::intersectRay(const Ray & ray, glm::vec2 * baryPos, float * distance) const { - return applyOne(&RailVehicle::intersectRay, ray, baryPos, eh) != end(); + return applyOne(&RailVehicle::intersectRay, ray, baryPos, distance) != end(); } void -- cgit v1.2.3