Browse Source

Fix potential conflict of monster states in scripted_sequence

hl_urbicide
Roman Chistokhodov 3 years ago committed by Andrey Akhmichin
parent
commit
201206ccfd
  1. 2
      dlls/scripted.cpp

2
dlls/scripted.cpp

@ -664,7 +664,7 @@ void ScriptEntityCancel( edict_t *pentCine ) @@ -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…
Cancel
Save