From 9cf34f9d4f07aa78ceaf31afed4f33305b8408f0 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 9 Jun 2009 08:31:38 +0000 Subject: [PATCH] Damn cat git-svn-id: https://svn.eduke32.com/eduke32@1427 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index c7499a51f..d9aa2237d 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -5935,9 +5935,16 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm) { if (pr_maxlightpasses != r_pr_maxlightpasses) { + int32_t i = 0; + while (i < PR_MAXLIGHTS) + { + if (prlights[i].flags.active) + prlights[i].flags.invalidate = 1; + i++; + } + pr_maxlightpasses = r_pr_maxlightpasses; } - pr_maxlightpasses = r_pr_maxlightpasses; return r; } #endif