Reset state to STAND when the player has no physics

This commit is contained in:
smallmodel committed 2024-02-23 21:12:23 +01:00
1 parent 35e6435382
commit a67dbff603
1 file changed
+4
+4
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;
}