mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed radius attack that may inflict damage twice
https://forum.zdoom.org/viewtopic.php?t=66191
This commit is contained in:
parent
d54a7de284
commit
ae2f7dd892
1 changed files with 6 additions and 0 deletions
|
@ -5855,6 +5855,7 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom
|
|||
|
||||
P_GeometryRadiusAttack(bombspot, bombsource, bombdamage, bombdistance, bombmod, fulldamagedistance);
|
||||
|
||||
TArray<AActor*> targets;
|
||||
int count = 0;
|
||||
while ((it.Next(&cres)))
|
||||
{
|
||||
|
@ -5885,6 +5886,11 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom
|
|||
)
|
||||
) continue;
|
||||
|
||||
targets.Push(thing);
|
||||
}
|
||||
|
||||
for (AActor *thing : targets)
|
||||
{
|
||||
// Barrels always use the original code, since this makes
|
||||
// them far too "active." BossBrains also use the old code
|
||||
// because some user levels require they have a height of 16,
|
||||
|
|
Loading…
Reference in a new issue