From 59b8c83757f19b2b30fcd0381b046983f463b7e8 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 30 May 2001 15:33:18 +0000 Subject: [PATCH] --- source/enemy/nanemone.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/enemy/nanemone.cpp b/source/enemy/nanemone.cpp index 6ccf0b018..56ddf4da0 100644 --- a/source/enemy/nanemone.cpp +++ b/source/enemy/nanemone.cpp @@ -56,7 +56,7 @@ void CNpcAnemoneEnemy::postInit() { CNpcEnemy::postInit(); - m_drawRotation = m_heading + 1024; + m_drawRotation = ( m_heading + 1024 ) & 4095; m_fireHeading = m_heading; } @@ -172,7 +172,7 @@ void CNpcAnemone1Enemy::processClose( int _frames ) m_heading &= 4095; - m_drawRotation = m_heading + 1024; + m_drawRotation = ( m_heading + 1024 ) & 4095; CSoundMediator::playSfx( CSoundMediator::SFX_ANEMONE_MOVE ); } @@ -233,7 +233,7 @@ void CNpcAnemone1Enemy::processClose( int _frames ) void CNpcAnemone2Enemy::postInit() { - m_drawRotation = m_heading + 1024; + m_drawRotation = ( m_heading + 1024 ) & 4095; m_scaleX = ONE; m_scaleY = ONE; @@ -322,8 +322,10 @@ void CNpcAnemone2Enemy::processShot( int _frames ) case NPC_GENERIC_HIT_DEATH_END: { - m_drawRotation += 64 * _frames; - m_drawRotation &= 4095; + m_heading += 64 * _frames; + m_heading &= 4095; + + m_drawRotation = ( m_heading + 1024 ) & 4095; Pos.vy += m_speed * _frames;