This commit is contained in:
parent
3a8b8a4535
commit
6c608b0aca
19 changed files with 48 additions and 67 deletions
|
@ -48,14 +48,6 @@ void CNpcParasiticWormSegment::init()
|
|||
m_heading = 0;
|
||||
m_nextSegment = NULL;
|
||||
|
||||
/*DVECTOR ofs = getCollisionSize();
|
||||
|
||||
m_drawOffset.vx = 0;
|
||||
m_drawOffset.vy = -( ofs.vy >> 1 );
|
||||
|
||||
updateCollisionArea();*/
|
||||
|
||||
//sBBox boundingBox = m_actorGfx->GetBBox();
|
||||
setCollisionSize( 20, 20 );
|
||||
setCollisionCentreOffset( 10, 10 );
|
||||
updateCollisionArea();
|
||||
|
@ -197,6 +189,24 @@ void CNpcParasiticWormEnemy::shutdown()
|
|||
delete oldSegment;
|
||||
}
|
||||
|
||||
// remove position history
|
||||
|
||||
CNpcPositionHistory *currentPosition;
|
||||
CNpcPositionHistory *oldPosition;
|
||||
|
||||
currentPosition = m_positionHistory;
|
||||
|
||||
while( currentPosition )
|
||||
{
|
||||
oldPosition = currentPosition;
|
||||
currentPosition = currentPosition->next;
|
||||
|
||||
oldPosition->prev->next = NULL;
|
||||
delete oldPosition;
|
||||
}
|
||||
|
||||
m_positionHistory = NULL;
|
||||
|
||||
CNpcEnemy::shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue