mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Fix issue with non-actor sprites not being deleted at size 0
git-svn-id: https://svn.eduke32.com/eduke32@6526 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7acf811eae
commit
933161fc2d
1 changed files with 19 additions and 1 deletions
|
@ -8225,7 +8225,7 @@ void G_RefreshLights(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void G_DoEventGame(int nEventID)
|
static void G_DoEventGame(int const nEventID)
|
||||||
{
|
{
|
||||||
if (VM_HaveEvent(nEventID))
|
if (VM_HaveEvent(nEventID))
|
||||||
{
|
{
|
||||||
|
@ -8254,6 +8254,24 @@ static void G_DoEventGame(int nEventID)
|
||||||
}
|
}
|
||||||
while (statNum < MAXSTATUS);
|
while (statNum < MAXSTATUS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int statNum = 0;
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
int spriteNum = headspritestat[statNum++];
|
||||||
|
|
||||||
|
while (spriteNum >= 0)
|
||||||
|
{
|
||||||
|
int const nextSprite = nextspritestat[spriteNum];
|
||||||
|
|
||||||
|
if (sprite[spriteNum].xrepeat == 0)
|
||||||
|
A_DeleteSprite(spriteNum);
|
||||||
|
|
||||||
|
spriteNum = nextSprite;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
while (statNum < MAXSTATUS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void G_MoveWorld(void)
|
void G_MoveWorld(void)
|
||||||
|
|
Loading…
Reference in a new issue