mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-16 14:32:31 +03:00
Fixed NPCs with death animations extinguishing their fires before they should be extinguished
This commit is contained in:
parent
184be1a794
commit
0bd1f5fb59
@ -242,7 +242,12 @@ void CEntityFlame::FlameThink( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
CAI_BaseNPC *pNPC = m_hEntAttached->MyNPCPointer();
|
CAI_BaseNPC *pNPC = m_hEntAttached->MyNPCPointer();
|
||||||
|
#ifdef MAPBASE
|
||||||
|
// Don't extingish if the NPC is still dying
|
||||||
|
if ( pNPC && !pNPC->IsAlive() && pNPC->m_lifeState != LIFE_DYING )
|
||||||
|
#else
|
||||||
if ( pNPC && !pNPC->IsAlive() )
|
if ( pNPC && !pNPC->IsAlive() )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
UTIL_Remove( this );
|
UTIL_Remove( this );
|
||||||
// Notify the NPC that it's no longer burning!
|
// Notify the NPC that it's no longer burning!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user