From e18063beb8892b4626732385aad259e906988be8 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 21 Feb 2012 18:24:36 +0000 Subject: [PATCH] Fix sprites with picnums >= MAXSPRITES not drawing in classic. This was discovered because viewscreens (TILE_VIEWSCR) ceased being drawn with the MAXTILES increase (reported by Hank, who also did the bisect). git-svn-id: https://svn.eduke32.com/eduke32@2376 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 01108203a..339fabd04 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -5282,7 +5282,7 @@ static void drawsprite(int32_t snum) spritenum = tspr->owner; cstat = tspr->cstat; - if (tilenum < 0 || tilenum >= MAXSPRITES) return; + if (tilenum < 0 || tilenum >= MAXTILES) return; if ((cstat&48)==48) vtilenum = tilenum; // if the game wants voxels, it gets voxels else if ((cstat&48)!=48 && (usevoxels) && (tiletovox[tilenum] != -1)