mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- let blastradius work without an effect actor.
This commit is contained in:
parent
e47f016b23
commit
d739587f6b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ extend class Actor
|
|||
(victim.radius + 1) * cos(ang),
|
||||
(victim.radius + 1) * sin(ang),
|
||||
(victim.Height / 2) - victim.Floorclip);
|
||||
Actor mo = Spawn (blasteffect, spawnpos, ALLOW_REPLACE);
|
||||
Actor mo = blasteffect? Spawn (blasteffect, spawnpos, ALLOW_REPLACE) : null;
|
||||
if (mo)
|
||||
{
|
||||
mo.Vel.XY = victim.Vel.XY;
|
||||
|
|
Loading…
Reference in a new issue