mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fix potential conflict of monster states in scripted_sequence
This commit is contained in:
parent
cc4aebd61a
commit
201206ccfd
@ -664,7 +664,7 @@ void ScriptEntityCancel( edict_t *pentCine )
|
||||
if( pTarget )
|
||||
{
|
||||
// make sure their monster is actually playing a script
|
||||
if( pTarget->m_MonsterState == MONSTERSTATE_SCRIPT )
|
||||
if( pTarget->m_MonsterState == MONSTERSTATE_SCRIPT || pTarget->m_IdealMonsterState == MONSTERSTATE_SCRIPT )
|
||||
{
|
||||
// tell them do die
|
||||
pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP;
|
||||
|
Loading…
Reference in New Issue
Block a user