From 2a8821dd034f8fa8f44373b369ee5eb94d6182c1 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 22 Aug 2001 13:10:41 +0000 Subject: [PATCH] --- source/enemy/nssnake.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/enemy/nssnake.cpp b/source/enemy/nssnake.cpp index dd4df2234..2d956bf63 100644 --- a/source/enemy/nssnake.cpp +++ b/source/enemy/nssnake.cpp @@ -1238,6 +1238,11 @@ void CNpcSeaSnakeEnemy::processShot( int _frames ) m_state = NPC_GENERIC_HIT_DEATH_END; + if ( !CGameScene::getBossHasBeenKilled() ) + { + CGameScene::setBossHasBeenKilled(); + } + DVECTOR const &offset = CLevel::getCameraPos(); if ( Pos.vy - offset.vy > VidGetScrH() ) @@ -1261,11 +1266,6 @@ void CNpcSeaSnakeEnemy::processShot( int _frames ) m_speed = m_data[m_type].speed + ( ( 3 * ( NPC_SEA_SNAKE_LENGTH - ( m_health - 1 ) ) ) / NPC_SEA_SNAKE_LENGTH ); m_collTimer = GameState::getOneSecondInFrames(); - - if ( m_segmentCount <= 0 ) - { - CGameScene::setBossHasBeenKilled(); - } } m_invulnerableTimer = 2 * GameState::getOneSecondInFrames();