From c7280a140b33bd6a03db1d42b8f2c660c7660ace Mon Sep 17 00:00:00 2001 From: plagman Date: Wed, 27 Apr 2011 14:30:48 +0000 Subject: [PATCH] Fix the bug where Mapster32 tile selection would display the detail map of a tile. git-svn-id: https://svn.eduke32.com/eduke32@1873 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 22eba7f75..1e8f3bc6e 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -5203,6 +5203,9 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 double d, cosang, sinang, cosang2, sinang2, px[8], py[8], px2[8], py2[8]; float m[4][4]; int32_t oxdim = xdim, oydim = ydim; +#if defined(USE_OPENGL) && defined(POLYMER) + int32_t olddetailmapping, oldglowmapping; +#endif #ifdef USE_OPENGL @@ -5437,6 +5440,10 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 # ifdef POLYMER if (rendmode >= 4) { polymer_inb4rotatesprite(picnum, dapalnum, dashade); + olddetailmapping = r_detailmapping; + oldglowmapping = r_glowmapping; + r_detailmapping = 0; + r_glowmapping = 0; } # endif } @@ -5594,6 +5601,8 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 { # ifdef POLYMER if (rendmode >= 4) { + r_detailmapping = olddetailmapping; + r_glowmapping = oldglowmapping; polymer_postrotatesprite(); } # endif