This commit is contained in:
Charles 2001-06-26 19:23:55 +00:00
parent 13cca1815f
commit a01a13d45b
4 changed files with 11 additions and 1 deletions

View file

@ -49,7 +49,7 @@ void CNpcEnemyGenerator::think(int _frames)
CNpcEnemy *enemy;
enemy=CNpcEnemy::Create( CNpcEnemy::NPC_SPIDER_CRAB );
enemy->setStartPos( Pos.vx >> 4, Pos.vy >> 4 );
enemy->setStartPos( ( Pos.vx - 8 ) >> 4, ( Pos.vy - 16 ) >> 4 );
u16 *waypointPtr = m_npcPath.getWaypointPtr();
@ -62,6 +62,7 @@ void CNpcEnemyGenerator::think(int _frames)
enemy->setPathType( m_npcPath.getPathType() );
enemy->postInit();
enemy->setThinkArea();
enemy->updateCollisionArea();
addChild( enemy );