From b2ccefbcf40e7080fe01d0f2caf63992791ce86d Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 18 Jul 2001 21:30:45 +0000 Subject: [PATCH] --- source/hazard/hflytrap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/hazard/hflytrap.cpp b/source/hazard/hflytrap.cpp index c98f0aad9..852e8825e 100644 --- a/source/hazard/hflytrap.cpp +++ b/source/hazard/hflytrap.cpp @@ -38,7 +38,7 @@ void CNpcFlyTrapHazard::init() { CNpcHazard::init(); - m_rotation = 0; + m_rotation = -1024; m_shut = true; m_contact = false; } @@ -55,9 +55,9 @@ void CNpcFlyTrapHazard::processMovement( int _frames ) { m_rotation += 64 * _frames; - if ( m_rotation > 1024 ) + if ( m_rotation > 0 ) { - m_rotation = 1024; + m_rotation = 0; m_shut = false; m_contact = false; m_timer = GameState::getOneSecondInFrames(); @@ -80,9 +80,9 @@ void CNpcFlyTrapHazard::processMovement( int _frames ) { m_rotation -= 64 * _frames; - if ( m_rotation < 0 ) + if ( m_rotation < -1024 ) { - m_rotation = 0; + m_rotation = -1024; m_shut = true; } } @@ -168,7 +168,7 @@ void CNpcFlyTrapHazard::collidedWith( CThing *_thisThing ) } } - if ( m_rotation > 512 ) + if ( m_rotation > -512 ) { CPlayer *player = (CPlayer *) _thisThing;