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:
helixhorned 2011-12-17 18:51:29 +00:00
parent 8f92cb024d
commit 60bb16693b

View file

@ -2303,7 +2303,7 @@ int32_t engine_addtsprite(int16_t z, int16_t sectnum)
{
sortcnt = &yax_spritesortcnt[yax_globallev];
if (*sortcnt >= MAXSPRITESONSCREEN)
return 0;
return 1;
yax_tsprite[yax_globallev][*sortcnt] = z;
if (yax_globalbunch >= 0)