This commit is contained in:
Charles 2001-04-25 20:09:36 +00:00
parent 51249170a7
commit a3e585e960
4 changed files with 13 additions and 13 deletions

View file

@ -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;
}