Skip to content

Commit 89200d0

Browse files
committed
1 parent 244e2ec commit 89200d0

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/game/server/baseentity.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8651,7 +8651,11 @@ bool CBaseEntity::ValidateScriptScope()
86518651
//-----------------------------------------------------------------------------
86528652
void CBaseEntity::RunVScripts()
86538653
{
8654-
if( m_iszVScripts == NULL_STRING )
8654+
#ifdef BDSBASE
8655+
if (m_iszVScripts == NULL_STRING || !ValidateScriptScope())
8656+
#else
8657+
if (m_iszVScripts == NULL_STRING)
8658+
#endif
86558659
{
86568660
return;
86578661
}
@@ -8728,7 +8732,11 @@ void CBaseEntity::RunVScripts()
87288732
//--------------------------------------------------------------------------------------------------
87298733
void CBaseEntity::RunPrecacheScripts( void )
87308734
{
8731-
if( m_iszVScripts == NULL_STRING )
8735+
#ifdef BDSBASE
8736+
if (m_iszVScripts == NULL_STRING || !ValidateScriptScope())
8737+
#else
8738+
if (m_iszVScripts == NULL_STRING)
8739+
#endif
87328740
{
87338741
return;
87348742
}
@@ -8743,7 +8751,11 @@ void CBaseEntity::RunPrecacheScripts( void )
87438751

87448752
void CBaseEntity::RunOnPostSpawnScripts( void )
87458753
{
8746-
if( m_iszVScripts == NULL_STRING )
8754+
#ifdef BDSBASE
8755+
if (m_iszVScripts == NULL_STRING || !ValidateScriptScope())
8756+
#else
8757+
if (m_iszVScripts == NULL_STRING)
8758+
#endif
87478759
{
87488760
return;
87498761
}

0 commit comments

Comments
 (0)