diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-15 11:41:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-16 15:43:15 +0000 |
commit | 92cba8dfe1034aa6fe7f2178183411a14efcd983 (patch) | |
tree | 761fb81db114d0b02348b1050e1a960a5e9412b8 /game/vehicles/train.cpp | |
parent | Process UI layers in reverse, so it's stack like (diff) | |
download | ilt-92cba8dfe1034aa6fe7f2178183411a14efcd983.tar.bz2 ilt-92cba8dfe1034aa6fe7f2178183411a14efcd983.tar.xz ilt-92cba8dfe1034aa6fe7f2178183411a14efcd983.zip |
We know the last param is distance now
Diffstat (limited to 'game/vehicles/train.cpp')
-rw-r--r-- | game/vehicles/train.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |