From b4404978d68e54f500670e68b963d3b71cd06517 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Dec 2018 01:39:03 +0000 Subject: [PATCH] Change A_AddToDeleteQueue() to call A_DeleteSprite() on sprites it removes from the queue directly, as sprites with statnums other than STAT_ACTOR and STAT_MISC are not deleted automatically when their xrepeat is 0. This fixes using CON_INSERTSPRITEQ with sprites of statnums other than STAT_ACTOR and STAT_MISC. git-svn-id: https://svn.eduke32.com/eduke32@7275 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 7d6a7e43a..2b584ae83 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -643,7 +643,8 @@ void A_AddToDeleteQueue(int spriteNum) } if (SpriteDeletionQueue[g_spriteDeleteQueuePos] >= 0) - sprite[SpriteDeletionQueue[g_spriteDeleteQueuePos]].xrepeat = 0; + A_DeleteSprite(SpriteDeletionQueue[g_spriteDeleteQueuePos]); + SpriteDeletionQueue[g_spriteDeleteQueuePos] = spriteNum; g_spriteDeleteQueuePos = (g_spriteDeleteQueuePos+1)%g_deleteQueueSize; }