Reset state to STAND when the player has no physics

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

View file

@ -9979,6 +9979,10 @@ void Player::EventGetCurrentDMWeaponType(Event *ev)
void Player::PhysicsOff(Event *ev)
{
// Added in 2.0
// Reset the state to STAND before disabling physics
EvaluateState(statemap_Torso->FindState("STAND"), statemap_Legs->FindState("STAND"));
flags |= FL_IMMOBILE;
}