Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 66a9209

Browse files
committed
Upside-downness shouldn't allow going from INACTIVE to UNSTABLE status
1 parent df93462 commit 66a9209

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Entities/ACrab.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,8 +2713,7 @@ void ACrab::Update()
27132713
{
27142714
rot = (rot > 0 ? -c_PI : c_PI) + (rot - (rot > 0 ? c_PI : -c_PI));
27152715
// If we're upside down, we're unstable damnit
2716-
if (m_Status != DYING && m_Status != DEAD)
2717-
m_Status = UNSTABLE;
2716+
if (m_Status == STABLE) { m_Status = UNSTABLE; }
27182717
m_StableRecoverTimer.Reset();
27192718
}
27202719

Entities/AHuman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4006,7 +4006,7 @@ void AHuman::Update()
40064006
if (std::abs(rot) > c_PI) {
40074007
rot = (rot > 0 ? -c_PI : c_PI) + (rot - (rot > 0 ? c_PI : -c_PI));
40084008
// If we're upside down, we're unstable damnit
4009-
if (m_Status != DYING && m_Status != DEAD) { m_Status = UNSTABLE; }
4009+
if (m_Status == STABLE) { m_Status = UNSTABLE; }
40104010
m_StableRecoverTimer.Reset();
40114011
}
40124012

0 commit comments

Comments
 (0)