From 7c7b8f62a97117ba0e6a03a4c08cc46b62365033 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 22 May 2018 05:59:08 +0000 Subject: [PATCH] CON: Revert r6526 and r6527. This restores the longstanding behavior of the killit command, and setting sprites' xrepeat to zero, to not actually delete sprites unless their statnum is STAT_ACTOR or STAT_MISC. Be sure to set a sprite's statnum to one of these statnums if you want it to be deleted. This should fix the broken E1L1 sector warp in the existing release of the Duke 64 mod, and the Polymer light culling used in HHR. git-svn-id: https://svn.eduke32.com/eduke32@6892 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 839a67ede..83c24295a 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -8371,18 +8371,6 @@ static void G_DoEventGame(int const nEventID) } while (statNum < MAXSTATUS); } - - int spriteNum = headspritestat[0]; - - while (spriteNum >= 0) - { - int const nextSprite = nextspritestat[spriteNum]; - - if (sprite[spriteNum].xrepeat == 0) - A_DeleteSprite(spriteNum); - - spriteNum = nextSprite; - } } void G_MoveWorld(void)