func_pushable: only run physics routine when velocity is > 0
This commit is contained in:
parent
de63f37a52
commit
75dfffaf4b
1 changed files with 4 additions and 1 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue