From b77024de4351bcddee5c4781aa9fc031131f293b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Feb 2021 14:06:29 +0000 Subject: Pass linters --- game/vehicles/railloco.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/vehicles/railloco.cpp') diff --git a/game/vehicles/railloco.cpp b/game/vehicles/railloco.cpp index b47722e..6a43965 100644 --- a/game/vehicles/railloco.cpp +++ b/game/vehicles/railloco.cpp @@ -6,7 +6,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -61,7 +63,7 @@ RailLoco::updateRailVehiclePosition(RailVehicle * w, float trailBy) const { const auto overhang {(w->length - w->wheelBase) / 2}; const auto & b1Pos = w->bogeys[0].location = getBogeyPosition(linkDist, trailBy += overhang); - const auto & b2Pos = w->bogeys[1].location = getBogeyPosition(linkDist, trailBy += wheelBase); + const auto & b2Pos = w->bogeys[1].location = getBogeyPosition(linkDist, trailBy + wheelBase); const auto diff = glm::normalize(b2Pos.GetPos() - b1Pos.GetPos()); w->location.GetPos() = (b1Pos.GetPos() + b2Pos.GetPos()) / 2.F; w->location.GetRot() = {-vector_pitch(diff), vector_yaw(diff), 0}; -- cgit v1.2.3