This commit is contained in:
parent
f7ac8f3376
commit
22a55d878d
@ -174,6 +174,13 @@ void CNpcParasiticWormEnemy::postInit()
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void CNpcParasiticWormSegment::shutdown()
|
||||||
|
{
|
||||||
|
delete m_actorGfx;
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcParasiticWormEnemy::shutdown()
|
void CNpcParasiticWormEnemy::shutdown()
|
||||||
{
|
{
|
||||||
// delete worm segments
|
// delete worm segments
|
||||||
@ -186,6 +193,8 @@ void CNpcParasiticWormEnemy::shutdown()
|
|||||||
|
|
||||||
oldSegment = currentSegment;
|
oldSegment = currentSegment;
|
||||||
currentSegment = currentSegment->m_nextSegment;
|
currentSegment = currentSegment->m_nextSegment;
|
||||||
|
|
||||||
|
oldSegment->shutdown();
|
||||||
delete oldSegment;
|
delete oldSegment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ class CNpcParasiticWormSegment
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
virtual void shutdown();
|
||||||
virtual void render();
|
virtual void render();
|
||||||
virtual void processEnemyCollision( CThing *thisThing );
|
virtual void processEnemyCollision( CThing *thisThing );
|
||||||
virtual void setScale( u16 scale ) {m_scale = scale;}
|
virtual void setScale( u16 scale ) {m_scale = scale;}
|
||||||
|
Loading…
Reference in New Issue
Block a user