From 1254ce06d94fe0cf7b3a5a2023324a66aa4f8d45 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 6 Apr 2016 03:07:52 +0000 Subject: [PATCH] Polymost: Fix shading on ART tiles with fullbrights displayed without masking, such as on a whitewall. git-svn-id: https://svn.eduke32.com/eduke32@5694 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 0a581993d..1971e3aec 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1202,7 +1202,7 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das pth->ofb = (pthtyp *)Xcalloc(1,sizeof(pthtyp)); pth->flags |= PTH_HASFULLBRIGHT; - gloadtile_art(dapic, dapal, -1, 0, dameth, pth->ofb, 1); + gloadtile_art(dapic, dapal, -1, 0, (dameth & DAMETH_MASKPROPS) == DAMETH_NOMASK ? dameth | DAMETH_MASK : dameth, pth->ofb, 1); fullbrightloadingpass = 0; }