mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
engine.c, in engine_addtsprite: if we can't add more tsprites because we
already have MAXSPRITESONSCREEN of them, return 1 to signal that the caller should break out of the loop. git-svn-id: https://svn.eduke32.com/eduke32@2183 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8f92cb024d
commit
60bb16693b
1 changed files with 1 additions and 1 deletions
|
@ -2303,7 +2303,7 @@ int32_t engine_addtsprite(int16_t z, int16_t sectnum)
|
||||||
{
|
{
|
||||||
sortcnt = &yax_spritesortcnt[yax_globallev];
|
sortcnt = &yax_spritesortcnt[yax_globallev];
|
||||||
if (*sortcnt >= MAXSPRITESONSCREEN)
|
if (*sortcnt >= MAXSPRITESONSCREEN)
|
||||||
return 0;
|
return 1;
|
||||||
|
|
||||||
yax_tsprite[yax_globallev][*sortcnt] = z;
|
yax_tsprite[yax_globallev][*sortcnt] = z;
|
||||||
if (yax_globalbunch >= 0)
|
if (yax_globalbunch >= 0)
|
||||||
|
|
Loading…
Reference in a new issue