mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 22:00:48 +00:00
- fix: check if bombsource exists when exploding a projectile with a XF_NOALLIES flag
This commit is contained in:
parent
593e1c0225
commit
847f34f2c9
1 changed files with 1 additions and 1 deletions
|
@ -6169,7 +6169,7 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, double
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//[inkoalawetrust] Don't harm actors friendly to the explosions' source. But do harm the source.
|
//[inkoalawetrust] Don't harm actors friendly to the explosions' source. But do harm the source.
|
||||||
if ((flags & RADF_NOALLIES) && bombsource->IsFriend(thing) && !(thing == bombsource || thing == bombspot))
|
if ((flags & RADF_NOALLIES) && bombsource && bombsource->IsFriend(thing) && !(thing == bombsource || thing == bombspot))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (bombsource && thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing))
|
if (bombsource && thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing))
|
||||||
|
|
Loading…
Reference in a new issue