From 9a04065b5e04a76bec21b74a7079805e66cbc1b8 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Sep 2014 18:18:15 +0000 Subject: [PATCH] I'm retarded. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4640 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 351bae6c0..6d91a6735 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1383,13 +1383,10 @@ void polymost_setupglowtexture(const int32_t texunits, const int32_t tex) static int32_t pow2xsplit = 0, skyclamphack = 0; static float alpha = 0.f; -static pthtyp *our_texcache_fetch(int32_t dameth) +static inline pthtyp *our_texcache_fetch(int32_t dameth) { // r_usetileshades 1 is TX's method. - if (r_usetileshades != 1) - return texcache_fetch(globalpicnum, globalpal, globalshade, dameth); - - return texcache_fetch(globalpicnum, globalpal, getpalookup(globvis>>3, globalshade), dameth); + return texcache_fetch(globalpicnum, globalpal, getpalookup((r_usetileshades == 1) ? globvis>>3 : 0, globalshade), dameth); } static void drawpoly(float *dpx, float *dpy, int32_t n, int32_t method)