Skip to content

Commit

Permalink
Fixes #305
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Apr 9, 2019
1 parent a31be1d commit d674924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/wpn_shared/wpn_c4.cpp
Expand Up @@ -112,7 +112,7 @@ void CC4::PrimaryAttack()
{
TraceResult tr;
UTIL_TraceLine(m_pPlayer->pev->origin, m_pPlayer->pev->origin + Vector(0, 0, -8192), ignore_monsters, m_pPlayer->edict(), &tr);
onGround = tr.flFraction != 1.0;
onGround = (tr.flFraction != 1.0 && m_pPlayer->pev->velocity.z == 0.0f);
}
#endif

Expand Down

0 comments on commit d674924

Please sign in to comment.