From 60bb16693b75d11fe44009196a67815b76e1b681 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 17 Dec 2011 18:51:29 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index ca83a356f..9df3d5aad 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -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)