Fix player's velocity on pushable use (#352)

* Fix player's velocity on pushable use
This commit is contained in:
voed 2019-04-11 02:31:54 +03:00 committed by Dmitry Novikov
parent d67492482a
commit b5a0fa4736

View File

@ -1056,8 +1056,11 @@ void CPushable::Move(CBaseEntity *pOther, int push)
if (bPlayerTouch)
{
// do not push player along with entity
#ifndef REGAMEDLL_FIXES
pevToucher->velocity.x = pev->velocity.x;
pevToucher->velocity.y = pev->velocity.y;
#endif // REGAMEDLL_FIXES
if ((gpGlobals->time - m_soundTime) > 0.7f)
{