- made the event manager an object so it can be instantiated multiple times.
This commit is contained in:
parent
8d83f03138
commit
484485f3cf
21 changed files with 257 additions and 246 deletions
|
|
@ -124,7 +124,7 @@ void P_DamageLinedef(line_t* line, AActor* source, int damage, FName damagetype,
|
|||
|
||||
if (dogroups)
|
||||
{
|
||||
damage = E_WorldLineDamaged(line, source, damage, damagetype, side, position, isradius);
|
||||
damage = eventManager.WorldLineDamaged(line, source, damage, damagetype, side, position, isradius);
|
||||
if (damage < 0) damage = 0;
|
||||
}
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ void P_DamageSector(sector_t* sector, AActor* source, int damage, FName damagety
|
|||
|
||||
if (dogroups)
|
||||
{
|
||||
damage = E_WorldSectorDamaged(sector, source, damage, damagetype, part, position, isradius);
|
||||
damage = eventManager.WorldSectorDamaged(sector, source, damage, damagetype, part, position, isradius);
|
||||
if (damage < 0) damage = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue