Shadow fix.

git-svn-id: https://svn.eduke32.com/eduke32@1269 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-03-26 16:41:06 +00:00
parent ed3198b65f
commit 88c7967d02

View file

@ -3591,6 +3591,7 @@ static void polymer_culllight(char lightindex)
static void polymer_prepareshadows(void) static void polymer_prepareshadows(void)
{ {
int32_t i, j; int32_t i, j;
int32_t gx, gy;
i = j = 0; i = j = 0;
@ -3615,8 +3616,15 @@ static void polymer_prepareshadows(void)
bglEnable(GL_POLYGON_OFFSET_FILL); bglEnable(GL_POLYGON_OFFSET_FILL);
bglPolygonOffset(15, 15); bglPolygonOffset(15, 15);
// for wallvisible()
gx = globalposx;
gy = globalposy;
polymer_displayrooms(prlights[i].sector); polymer_displayrooms(prlights[i].sector);
globalposx = gx;
globalposy = gy;
bglDisable(GL_POLYGON_OFFSET_FILL); bglDisable(GL_POLYGON_OFFSET_FILL);
bglMatrixMode(GL_PROJECTION); bglMatrixMode(GL_PROJECTION);