From 88c7967d02a93dfe41241ceefc04f980bea29eca Mon Sep 17 00:00:00 2001 From: plagman Date: Thu, 26 Mar 2009 16:41:06 +0000 Subject: [PATCH] Shadow fix. git-svn-id: https://svn.eduke32.com/eduke32@1269 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 80c8252fe..93019162a 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -3591,6 +3591,7 @@ static void polymer_culllight(char lightindex) static void polymer_prepareshadows(void) { int32_t i, j; + int32_t gx, gy; i = j = 0; @@ -3615,8 +3616,15 @@ static void polymer_prepareshadows(void) bglEnable(GL_POLYGON_OFFSET_FILL); bglPolygonOffset(15, 15); + // for wallvisible() + gx = globalposx; + gy = globalposy; + polymer_displayrooms(prlights[i].sector); + globalposx = gx; + globalposy = gy; + bglDisable(GL_POLYGON_OFFSET_FILL); bglMatrixMode(GL_PROJECTION);