This commit is contained in:
Charles 2001-06-30 15:39:43 +00:00
parent e1ff8eb3c6
commit eef4e8dc39
16 changed files with 64 additions and 99 deletions

View file

@ -49,7 +49,6 @@ void CNpcIronDogfishEnemy::postInit()
m_npcPath.setPathType( CNpcPath::PONG_PATH );
m_steamTimer = 0;
m_vulnerableTimer = 0;
m_meterOn=false;
if ( CLevel::getIsBossRespawn() )
{
@ -57,7 +56,7 @@ void CNpcIronDogfishEnemy::postInit()
m_speed = m_data[m_type].speed + ( ( 3 * ( m_data[m_type].initHealth - m_health ) ) / m_data[m_type].initHealth );
}
m_energyBar = NULL;
CNpcBossEnemy::postInit();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -552,12 +551,7 @@ void CNpcIronDogfishEnemy::shutdown()
CLevel::setBossHealth( m_health );
}
if ( m_energyBar )
{
m_energyBar->setToShutdown();
}
CNpcEnemy::shutdown();
CNpcBossEnemy::shutdown();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -572,13 +566,6 @@ void CNpcIronDogfishEnemy::render()
if (canRender())
{
if (!m_meterOn)
{
m_energyBar=(CFXNRGBar*)CFX::Create(CFX::FX_TYPE_NRG_BAR,this);
m_energyBar->SetMax(m_data[m_type].initHealth);
m_meterOn=true;
}
DVECTOR &renderPos=getRenderPos();
SprFrame = m_actorGfx->Render(renderPos,m_animNo,( m_frame >> 8 ),m_reversed);