mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-06 19:01:04 +03:00
Don't evaluate state when immobile
This commit is contained in:
parent
a67dbff603
commit
efaea69c09
1 changed files with 5 additions and 0 deletions
|
@ -5246,6 +5246,11 @@ void Player::EvaluateState(State *forceTorso, State *forceLegs)
|
|||
return;
|
||||
}
|
||||
|
||||
if (flags & FL_IMMOBILE) {
|
||||
// Don't evaluate state when immobile
|
||||
return;
|
||||
}
|
||||
|
||||
// Evaluate the current state.
|
||||
// When the state changes, we reevaluate the state so that if the
|
||||
// conditions aren't met in the new state, we don't play one frame of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue