Don't evaluate state when immobile

This commit is contained in:
smallmodel 2024-02-23 21:12:38 +01:00
parent a67dbff603
commit efaea69c09
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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