From d60ea539db7879c7bcfd51ffefc9125ee4e6289b Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 21 May 2001 16:51:45 +0000 Subject: [PATCH] --- source/enemy/nsdart.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/enemy/nsdart.cpp b/source/enemy/nsdart.cpp index 621a8a164..119902aed 100644 --- a/source/enemy/nsdart.cpp +++ b/source/enemy/nsdart.cpp @@ -170,7 +170,7 @@ void CNpcSquidDartEnemy::processClose( int _frames ) Pos.vx = m_circleCentre.vx + ( ( m_circleRadius * rcos( m_currentAngle ) ) >> 12 ); Pos.vy = m_circleCentre.vy + ( ( m_circleRadius * rsin( m_currentAngle ) ) >> 12 ); - m_angularDistance += 64 * _frames; + m_angularDistance += 32 * _frames; if ( m_angularDistance > 4095 ) { @@ -179,4 +179,12 @@ void CNpcSquidDartEnemy::processClose( int _frames ) m_timerTimer = GameState::getOneSecondInFrames(); m_sensorFunc = NPC_SENSOR_NONE; } + + if ( !m_animPlaying ) + { + m_frame = 0; + m_animNo = m_data[m_type].moveAnim; + m_animPlaying = true; + } + } \ No newline at end of file