mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-03 01:05:24 +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)
|
||||
{
|
||||
// UNDONE: wrong attacker!
|
||||
ApplyMultiDamage(pevInflictor, pevInflictor);
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (gMultiDamage.pEntity) // avoid api calls with null default pEntity
|
||||
#endif
|
||||
{
|
||||
// UNDONE: wrong attacker!
|
||||
ApplyMultiDamage(pevInflictor, pevInflictor);
|
||||
}
|
||||
|
||||
gMultiDamage.pEntity = pEntity;
|
||||
gMultiDamage.amount = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user