2
0
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:
Roman Chistokhodov 2021-07-05 21:08:34 +03:00 committed by Andrey Akhmichin
parent cc4aebd61a
commit 201206ccfd

View File

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