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
This commit is contained in:
hendricks266 2018-05-22 05:59:08 +00:00
parent 6cb29c820c
commit 7c7b8f62a9

View file

@ -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)