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
This commit is contained in:
hendricks266 2015-11-25 12:07:51 +00:00
parent 34bf6443ce
commit d723316bf5

View file

@ -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)