From d739587f6b06020e689b9cc42bae345807f319d8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 12 Jun 2020 23:14:58 +0200 Subject: [PATCH] - let blastradius work without an effect actor. --- wadsrc/static/zscript/actors/hexen/blastradius.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/hexen/blastradius.zs b/wadsrc/static/zscript/actors/hexen/blastradius.zs index 9dacb58a48..eee084f83d 100644 --- a/wadsrc/static/zscript/actors/hexen/blastradius.zs +++ b/wadsrc/static/zscript/actors/hexen/blastradius.zs @@ -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;