From c329cb24c2bd47508a45a8c2740d40d13a46468b Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 9 May 2001 15:15:47 +0000 Subject: [PATCH] --- source/enemy/npc.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 73240e2dd..3f733a4c0 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -1154,19 +1154,26 @@ void CNpcEnemy::processShot() { case NPC_GENERIC_HIT_CHECK_HEALTH: { - m_health -= 5; - - if ( m_health < 0 ) + if ( CLevel::getCurrentChapter() == 1 && CLevel::getCurrentChapterLevel() == 1 ) { m_state = NPC_GENERIC_HIT_DEATH_START; } else { - m_state = NPC_GENERIC_HIT_RECOIL; + m_health -= 5; - m_animPlaying = true; - m_animNo = m_data[m_type].recoilAnim; - m_frame = 0; + if ( m_health < 0 ) + { + m_state = NPC_GENERIC_HIT_DEATH_START; + } + else + { + m_state = NPC_GENERIC_HIT_RECOIL; + + m_animPlaying = true; + m_animNo = m_data[m_type].recoilAnim; + m_frame = 0; + } } break;