Skip to content

Commit cff6e9b

Browse files
committed
ADoor - remove stale old bad code for door spinup
The door hinge still spins up and explodes just fine with this patch applied, as code below lerps it downward properly anyway. Undefined sanitizer complaint: ../Source/Entities/ADoor.cpp:470:24: runtime error: signed integer overflow: 671088640 * 4 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../Source/Entities/ADoor.cpp:470:24
1 parent c3c10a4 commit cff6e9b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Source/Entities/ADoor.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,6 @@ void ADoor::Update() {
465465

466466
Actor::Update();
467467

468-
// Start the spinning out of control animation for the motor, start it slow
469-
if (!m_Door) {
470-
m_SpriteAnimDuration *= 4;
471-
}
472-
473468
if (m_SpriteAnimMode == LOOPWHENOPENCLOSE && m_FrameCount > 1 && (m_DoorState == OPENING || m_DoorState == CLOSING) && m_SpriteAnimTimer.IsPastSimMS(m_SpriteAnimDuration)) {
474469
m_Frame = (m_Frame + 1) % m_FrameCount;
475470
m_SpriteAnimTimer.Reset();

0 commit comments

Comments
 (0)