summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Ferry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicles/Ferry.cpp')
-rw-r--r--src/vehicles/Ferry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Ferry.cpp b/src/vehicles/Ferry.cpp
index 1ae1fb6c..89a0de9f 100644
--- a/src/vehicles/Ferry.cpp
+++ b/src/vehicles/Ferry.cpp
@@ -103,8 +103,8 @@ void CFerry::Init(void* pInstancePtr)
float t = 0.0f;
for (i = 0; i < pPath->NumTrackNodes; i++) {
pPath->aTrackNodes[i].t = t;
- t += Sqrt(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].x - pPath->aTrackNodes[i].x)) +
- (SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].y - pPath->aTrackNodes[i].y));
+ t += Sqrt(SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].x - pPath->aTrackNodes[i].x) +
+ (SQR(pPath->aTrackNodes[(i + 1) % pPath->NumTrackNodes].y - pPath->aTrackNodes[i].y)));
}
pPath->TotalLengthOfTrack = t;