mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
Bots: safe check for DoorActivator (#441)
This commit is contained in:
parent
49965644c3
commit
a9ba748eef
@ -510,7 +510,12 @@ void CBaseDoor::DoorGoUp()
|
||||
|
||||
if (TheBots)
|
||||
{
|
||||
TheBots->OnEvent(EVENT_DOOR, m_hActivator);
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (m_hActivator && m_hActivator->IsPlayer())
|
||||
#endif
|
||||
{
|
||||
TheBots->OnEvent(EVENT_DOOR, m_hActivator);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -680,7 +685,12 @@ void CBaseDoor::DoorGoDown()
|
||||
|
||||
if (TheBots)
|
||||
{
|
||||
TheBots->OnEvent(EVENT_DOOR, m_hActivator);
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (m_hActivator && m_hActivator->IsPlayer())
|
||||
#endif
|
||||
{
|
||||
TheBots->OnEvent(EVENT_DOOR, m_hActivator);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user