diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp index b6be1a185..d58d38855 100644 --- a/src/game/gamecore.cpp +++ b/src/game/gamecore.cpp @@ -403,7 +403,7 @@ void CCharacterCore::Tick(bool UseInput) // make sure that we don't add excess force by checking the // direction against the current velocity. if not zero. if(length(m_Vel) > 0.0001f) - Velocity = 1.f - (dot(normalize(m_Vel), Dir) + 1.f) / 2; + Velocity = 1 - (dot(normalize(m_Vel), Dir) + 1) / 2; // Wdouble-promotion don't fix this as this might change game physics m_Vel += Dir * a * (Velocity * 0.75f); m_Vel *= 0.85f;