mirror of
https://github.com/GTAmodding/re3.git
synced 2025-02-28 05:49:41 +00:00
vehicle collisions and sprinting on steep grades
helps with ped<->vehicle collisions and sprinting on steep grades at high framerates
This commit is contained in:
parent
71853e03e7
commit
bb300a96b5
1 changed files with 6 additions and 0 deletions
|
@ -1540,6 +1540,12 @@ CPed::UpdatePosition(void)
|
||||||
velocityChange = velocityChange * (changeMult / speedChange);
|
velocityChange = velocityChange * (changeMult / speedChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
//helps with ped<->vehicle collisions and sprinting on steep grades at high framerates
|
||||||
|
velocityChange *= CTimer::GetTimeStepFix();
|
||||||
|
#endif
|
||||||
|
|
||||||
m_vecMoveSpeed.x += velocityChange.x;
|
m_vecMoveSpeed.x += velocityChange.x;
|
||||||
m_vecMoveSpeed.y += velocityChange.y;
|
m_vecMoveSpeed.y += velocityChange.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue