From de904d30522fb8d0cde07a5cb30b2d7db9887c3c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 8 May 2021 15:41:49 +0200 Subject: [PATCH] . Duke: made the 'lonely effector' error non fatal. Instead just move the bogus effector sprite out of the way. --- source/games/duke/src/spawn.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index b087cba1b..44043f7c3 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -994,7 +994,11 @@ void spawneffector(DDukeActor* actor) } if (!found) { - I_Error("Found lonely Sector Effector (lotag 0) at (%d,%d)\n", sp->x, sp->y); + sp->picnum = 0; + sp->cstat = CSTAT_SPRITE_NOFIND; + changespritesect(actor, STAT_REMOVED); + Printf("Found lonely Sector Effector (lotag 0) at (%d,%d)\n", sp->x, sp->y); + return; } }