mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-03 09:15:23 +03:00
Fix ApplyMultiDamage duplicated call on MultiDamage routine (#946)
This commit is contained in:
parent
d7f22ae3ec
commit
4ecf42799d
@ -107,8 +107,14 @@ void EXT_FUNC __API_HOOK(AddMultiDamage)(entvars_t *pevInflictor, CBaseEntity *p
|
|||||||
|
|
||||||
if (pEntity != gMultiDamage.pEntity)
|
if (pEntity != gMultiDamage.pEntity)
|
||||||
{
|
{
|
||||||
// UNDONE: wrong attacker!
|
#ifdef REGAMEDLL_FIXES
|
||||||
ApplyMultiDamage(pevInflictor, pevInflictor);
|
if (gMultiDamage.pEntity) // avoid api calls with null default pEntity
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
// UNDONE: wrong attacker!
|
||||||
|
ApplyMultiDamage(pevInflictor, pevInflictor);
|
||||||
|
}
|
||||||
|
|
||||||
gMultiDamage.pEntity = pEntity;
|
gMultiDamage.pEntity = pEntity;
|
||||||
gMultiDamage.amount = 0;
|
gMultiDamage.amount = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user