- let blastradius work without an effect actor.

This commit is contained in:
Christoph Oelckers 2020-06-12 23:14:58 +02:00
parent e47f016b23
commit d739587f6b

View file

@ -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;