summaryrefslogtreecommitdiffstats
path: root/src/entities/Physical.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-07 10:16:16 +0200
committeraap <aap@papnet.eu>2019-07-07 10:16:16 +0200
commit533f265f55ffea86a2090e3cd44f9efe69df8b57 (patch)
treeb13d1b1fa4818da40915c4a58c2fb61e5f07c421 /src/entities/Physical.cpp
parentMerge pull request #114 from Nick007J/master (diff)
downloadre3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar.gz
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar.bz2
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar.lz
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar.xz
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.tar.zst
re3-533f265f55ffea86a2090e3cd44f9efe69df8b57.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Physical.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Physical.cpp b/src/entities/Physical.cpp
index 14891cd9..b7ca1904 100644
--- a/src/entities/Physical.cpp
+++ b/src/entities/Physical.cpp
@@ -346,7 +346,7 @@ CPhysical::ProcessControl(void)
IsPed() && !bPedPhysics){
m_vecMoveSpeedAvg = (m_vecMoveSpeedAvg + m_vecMoveSpeed)/2.0f;
m_vecTurnSpeedAvg = (m_vecTurnSpeedAvg + m_vecTurnSpeed)/2.0f;
- float step = CTimer::GetTimeStep() * 0.003;
+ float step = CTimer::GetTimeStep() * 0.003f;
if(m_vecMoveSpeedAvg.MagnitudeSqr() < step*step &&
m_vecTurnSpeedAvg.MagnitudeSqr() < step*step){
m_nStaticFrames++;