Browse Source

Fix ScriptEntityCancel (#395)

sohl1.2
Roman Chistokhodov 1 year ago committed by GitHub
parent
commit
1685a691aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/scripted.cpp

2
dlls/scripted.cpp

@ -622,8 +622,8 @@ void ScriptEntityCancel( edict_t *pentCine )
// make sure they are a scripted_sequence // make sure they are a scripted_sequence
if (FClassnameIs( pentCine, "scripted_sequence" ) || FClassnameIs( pentCine, "scripted_action" )) if (FClassnameIs( pentCine, "scripted_sequence" ) || FClassnameIs( pentCine, "scripted_action" ))
{ {
((CCineMonster *)VARS(pentCine))->m_iState = STATE_OFF;
CCineMonster *pCineTarget = GetClassPtr( (CCineMonster *)VARS( pentCine ) ); CCineMonster *pCineTarget = GetClassPtr( (CCineMonster *)VARS( pentCine ) );
pCineTarget->m_iState = STATE_OFF;
// make sure they have a monster in mind for the script // make sure they have a monster in mind for the script
CBaseEntity *pEntity = pCineTarget->m_hTargetEnt; CBaseEntity *pEntity = pCineTarget->m_hTargetEnt;

Loading…
Cancel
Save