Skip to content

Commit

Permalink
Workaround "lift" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 31, 2019
1 parent b52042b commit 642dda3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cs/engine/xrGame/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,13 @@ float CActor::currentFOV()

void CActor::UpdateCL ()
{
if ((character_physics_support()->movement()->GetVelocityActual() < 0.7f) && (mstate_real&mcJump))
{
Fvector impulse;
impulse.set(0, 1, 0);
character_physics_support()->movement()->ApplyImpulse(impulse, m_fJumpSpeed);
}

UpdateInventoryOwner (Device.dwTimeDelta);

if(m_feel_touch_characters>0)
Expand Down

0 comments on commit 642dda3

Please sign in to comment.