From 064683571991f8e4ff5a0934e392d2dcfd15ab38 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 25 Nov 2015 12:07:41 +0000 Subject: [PATCH] Polymost: Remove "indrawroomsandmasks" variable and its only use in polymost_drawpoly as a condition for the fullbright pass. git-svn-id: https://svn.eduke32.com/eduke32@5437 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 3 --- polymer/eduke32/build/src/engine_priv.h | 2 -- polymer/eduke32/build/src/polymost.c | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index c5b65c546..303bad46e 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -175,7 +175,6 @@ static uint32_t *distrecip; static int32_t *lookups = NULL; static int32_t dommxoverlay = 1, beforedrawrooms = 1; -int32_t indrawroomsandmasks = 0; static int32_t oxdimen = -1, oviewingrange = -1, oxyaspect = -1; @@ -9327,7 +9326,6 @@ int32_t drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, int32_t didmirror = 0; beforedrawrooms = 0; - indrawroomsandmasks = 1; set_globalpos(daposx, daposy, daposz); set_globalang(daang); @@ -10057,7 +10055,6 @@ killsprite: } #endif - indrawroomsandmasks = 0; enddrawing(); //}}} } diff --git a/polymer/eduke32/build/src/engine_priv.h b/polymer/eduke32/build/src/engine_priv.h index d5e7be34b..9ae3d48b2 100644 --- a/polymer/eduke32/build/src/engine_priv.h +++ b/polymer/eduke32/build/src/engine_priv.h @@ -149,8 +149,6 @@ extern int32_t m32_numdebuglines; #endif -extern int32_t indrawroomsandmasks; - #if defined(_MSC_VER) && !defined(NOASM) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 13c006097..278a31651 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1466,7 +1466,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32 static int32_t fullbright_pass = 0; - if (pth->flags & PTH_HASFULLBRIGHT && indrawroomsandmasks && r_fullbrights) + if (pth->flags & PTH_HASFULLBRIGHT && r_fullbrights) { if (!fullbright_pass) fullbright_pass = 1;