This commit is contained in:
parent
51249170a7
commit
a3e585e960
4 changed files with 13 additions and 13 deletions
|
@ -337,6 +337,13 @@ void CNpcPlatform::shutdown()
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcPlatform::setToShutdown()
|
||||
{
|
||||
m_isShuttingDown = true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcPlatform::processLifetime( int _frames )
|
||||
{
|
||||
switch( m_lifetimeType )
|
||||
|
@ -347,8 +354,7 @@ void CNpcPlatform::processLifetime( int _frames )
|
|||
|
||||
if ( m_lifetime <= 0 )
|
||||
{
|
||||
shutdown();
|
||||
delete this;
|
||||
setToShutdown();
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue