func_pushable: only run physics routine when velocity is > 0

This commit is contained in:
Marco Cawthorne 2021-06-18 09:24:58 +02:00
parent de63f37a52
commit 75dfffaf4b

View file

@ -73,7 +73,10 @@ func_pushable::customphysics(void)
/* run the physics, then fix our helper bbox! */
friction = 0.5f;
runstandardplayerphysics(this);
if (vlen(velocity))
runstandardplayerphysics(this);
setorigin(m_eCollBox, absmin + (0.5 * (absmax - absmin)));
}