mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Fixed bug when restarting a button using multisource (Do not use multisource when restarting a button)
This commit is contained in:
parent
53d26a7ea5
commit
02bb06a6ef
@ -776,7 +776,11 @@ void CBaseButton::ButtonBackHome()
|
||||
SUB_UseTargets(m_hActivator, USE_TOGGLE, 0);
|
||||
}
|
||||
|
||||
if (!FStringNull(pev->target))
|
||||
if (!FStringNull(pev->target)
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
&& m_hActivator
|
||||
#endif
|
||||
)
|
||||
{
|
||||
edict_t *pentTarget = nullptr;
|
||||
while ((pentTarget = FIND_ENTITY_BY_TARGETNAME(pentTarget, STRING(pev->target))))
|
||||
|
Loading…
Reference in New Issue
Block a user