summaryrefslogtreecommitdiffstats
path: root/src/control/AutoPilot.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-15 22:28:09 +0200
committerGitHub <noreply@github.com>2020-04-15 22:28:09 +0200
commit5cb7e2e42a17104a80053f1219ebbb022ff1dea1 (patch)
treec59643f93c566c0813551f0b59596d44573c7c5b /src/control/AutoPilot.cpp
parentMerge pull request #429 from Nick007J/master (diff)
parentfixed crash (diff)
downloadre3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar.gz
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar.bz2
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar.lz
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar.xz
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.tar.zst
re3-5cb7e2e42a17104a80053f1219ebbb022ff1dea1.zip
Diffstat (limited to 'src/control/AutoPilot.cpp')
-rw-r--r--src/control/AutoPilot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/AutoPilot.cpp b/src/control/AutoPilot.cpp
index b5bca21d..65e73e5d 100644
--- a/src/control/AutoPilot.cpp
+++ b/src/control/AutoPilot.cpp
@@ -35,7 +35,7 @@ void CAutoPilot::ModifySpeed(float speed)
m_nTimeEnteredCurve = CTimer::GetTimeInMilliseconds() -
(uint32)(positionBetweenNodes * m_nTimeToSpendOnCurrentCurve);
#else
- m_nTimeEnteredCurve = CTimer::GetTimeInMilliseconds() - positionBetweenNodes * m_nSpeedScaleFactor;
+ m_nTimeEnteredCurve = CTimer::GetTimeInMilliseconds() - positionBetweenNodes * m_nTimeToSpendOnCurrentCurve;
#endif
}