Fix being able to break scripted_sequence by +using friendly NPCs to make them follow player (#375)

This commit is contained in:
Roman Chistokhodov 2023-05-29 04:56:39 +03:00 committed by GitHub
parent 1ed4c1d899
commit 991fd0cd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1344,7 +1344,7 @@ void CTalkMonster::StartFollowing( CBaseEntity *pLeader )
BOOL CTalkMonster::CanFollow( void )
{
if( m_MonsterState == MONSTERSTATE_SCRIPT )
if( m_MonsterState == MONSTERSTATE_SCRIPT || m_IdealMonsterState == MONSTERSTATE_SCRIPT )
{
if( !m_pCine )
return FALSE;