mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-28 13:00:37 +01:00
Reset state to STAND when the player has no physics
This commit is contained in:
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user