From d723316bf5055ba30b6b4845b263a25ceead7efb Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 25 Nov 2015 12:07:51 +0000 Subject: [PATCH] Polymodes: Don't test (!usemodels || md_tilehasmodel(picnum, pal) < 0) in eligible_for_tileshades (called only from getshadefactor) because getshadefactor is only called when a model is *not* being drawn, and therefore results in incorrect shading when drawing a tile with a model defined and models enabled to the screen or as a skybox. git-svn-id: https://svn.eduke32.com/eduke32@5440 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/polymost.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/polymer/eduke32/build/include/polymost.h b/polymer/eduke32/build/include/polymost.h index 3e528cfa1..6f19d5240 100644 --- a/polymer/eduke32/build/include/polymost.h +++ b/polymer/eduke32/build/include/polymost.h @@ -66,8 +66,7 @@ extern int32_t globalpal; // Compare with polymer_eligible_for_artmap() static inline int32_t eligible_for_tileshades(int32_t const picnum, int32_t const pal) { - return (!usehightile || !hicfindsubst(picnum, pal)) && - (!usemodels || md_tilehasmodel(picnum, pal) < 0); + return !usehightile || !hicfindsubst(picnum, pal); } static inline float getshadefactor(int32_t const shade)