From 9653aa95a4d23a0fc741d72ba43484b90d1053f7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Jul 2018 08:46:28 +0200 Subject: [PATCH] - fixed: The BossCube must account for its target being gone. --- wadsrc/static/zscript/doom/bossbrain.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wadsrc/static/zscript/doom/bossbrain.txt b/wadsrc/static/zscript/doom/bossbrain.txt index 163683f27..41954c3ca 100644 --- a/wadsrc/static/zscript/doom/bossbrain.txt +++ b/wadsrc/static/zscript/doom/bossbrain.txt @@ -284,6 +284,12 @@ extend class Actor Actor eye = master; // The eye is the spawnshot's master, not the target! Actor targ = target; // Unlike other projectiles, the target is the intended destination. int r; + + if (targ == null) + { + Destroy(); + return; + } // [GZ] Should be more viable than a countdown... if (special2 != 0)