From 262e863b332cefbb4c616af34e4401b7f407a0fe Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 22 Jun 2017 01:32:10 +0000 Subject: [PATCH] Polymodes: Only try texcache_fetchmulti on detail texture slots. git-svn-id: https://svn.eduke32.com/eduke32@6221 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/texcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/texcache.cpp b/source/build/src/texcache.cpp index 36794d14b..2da29660b 100644 --- a/source/build/src/texcache.cpp +++ b/source/build/src/texcache.cpp @@ -165,7 +165,7 @@ pthtyp *texcache_fetch(int32_t dapicnum, int32_t dapalnum, int32_t dashade, int3 pthtyp *pth = (pthtyp *)Xcalloc(1, sizeof(pthtyp)); // possibly fetch an already loaded multitexture :_) - if (dapalnum >= (MAXPALOOKUPS - RESERVEDPALS) && texcache_fetchmulti(pth, si, dapicnum, dameth)) + if (dapalnum == DETAILPAL && texcache_fetchmulti(pth, si, dapicnum, dameth)) return pth; int32_t tilestat =