This commit is contained in:
Charles 2001-07-26 18:34:45 +00:00
parent cb0f954a90
commit abc3ef1764
2 changed files with 3 additions and 3 deletions

View File

@ -1320,9 +1320,7 @@ void CNpcEnemy::processShotDeathEnd( int _frames )
m_speed++; m_speed++;
} }
DVECTOR const &offset = CLevel::getCameraPos(); if ( !canRender() )
if ( Pos.vy - offset.vy > VidGetScrH() )
{ {
if ( m_data[m_type].respawning ) if ( m_data[m_type].respawning )
{ {

View File

@ -125,6 +125,8 @@ public:
bool suckUp( DVECTOR *suckPos, int _frames ); bool suckUp( DVECTOR *suckPos, int _frames );
int getHealth() {return(m_health);} int getHealth() {return(m_health);}
bool alwaysThink() {return(m_isDying);} // makes sure enemy drops off screen and is killed normally
protected: protected:
// NPC data structure definitions // // NPC data structure definitions //