This commit is contained in:
Charles 2001-06-14 16:07:48 +00:00
parent 4c93823479
commit f701f34dc4
25 changed files with 264 additions and 276 deletions

View file

@ -347,10 +347,7 @@ void CNpcMotherJellyfishEnemy::spawnJellyfish( int _frames )
else
{
CNpcEnemy *enemy;
enemy = new( "jellyfish projectile" ) CNpcSmallJellyfishProjectileEnemy;
ASSERT(enemy);
enemy->setType( CNpcEnemy::NPC_PROJECTILE_JELLYFISH );
enemy->init();
enemy = CNpcEnemy::Create( NPC_PROJECTILE_JELLYFISH );
enemy->setStartPos( Pos.vx >> 4, ( Pos.vy + 20 ) >> 4 );
enemy->setWaypointCount( m_npcPath.getWaypointCount() );