mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Revert possible physic change
This commit is contained in:
parent
d4aac67929
commit
49dd2b9ced
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue