mirror of https://github.com/FWGS/hlsdk-xash3d
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 )
|
if( pTarget )
|
||||||
{
|
{
|
||||||
// make sure their monster is actually playing a script
|
// 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
|
// tell them do die
|
||||||
pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP;
|
pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP;
|
||||||
|
|
Loading…
Reference in New Issue