From bba68b19130ae8ce5c1dd62d4708066124074117 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 2 Oct 2011 07:09:04 +0000 Subject: [PATCH] Polymer: fix horizontal spotlight SEs constantly getting invalidated Polymer has a hack that snaps horiz values of spotlights between 90 and 110 to 90 and 110 to avoid triggering aliasing artifacts with perfectly horizontal spotlights. Propagate that change all the way to the spotlight SE sprite so that the code won't think that the horiz is always different from the light and mark it invalid each frame. git-svn-id: https://svn.eduke32.com/eduke32@2057 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 9f895d92e..548a4bace 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -7853,6 +7853,10 @@ ACTOR_STATIC void G_MoveEffectors(void) //STATNUM 3 actor[i].lightId = polymer_addlight(&mylight); if (actor[i].lightId >= 0) actor[i].lightptr = &prlights[actor[i].lightId]; + + // Hack in case polymer_addlight tweaked the horiz value + if (prlights[i].horiz != SH) + SH = prlights[i].horiz; break; }