From e3a2e0a066957115ac5f556f525a96d79c613b76 Mon Sep 17 00:00:00 2001 From: plagman Date: Mon, 13 Jul 2009 22:30:13 +0000 Subject: [PATCH] Untested code to propagate more SE changes to polymer lights at DTs request. Priority isn't propagated yet. git-svn-id: https://svn.eduke32.com/eduke32@1460 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 02d33d199..485a118b2 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -7616,6 +7616,19 @@ static void G_MoveEffectors(void) //STATNUM 3 ActorExtra[i].lightptr->sector = sprite[i].sectnum; ActorExtra[i].lightptr->flags.invalidate = 1; } + if (SHT != ActorExtra[i].lightptr->range) + { + ActorExtra[i].lightptr->range = SHT; + ActorExtra[i].lightptr->flags.invalidate = 1; + } + if ((sprite[i].xvel != ActorExtra[i].lightptr->color[0]) || + (sprite[i].yvel != ActorExtra[i].lightptr->color[1]) || + (sprite[i].zvel != ActorExtra[i].lightptr->color[2])) + { + ActorExtra[i].lightptr->color[0] = sprite[i].xvel; + ActorExtra[i].lightptr->color[1] = sprite[i].yvel; + ActorExtra[i].lightptr->color[2] = sprite[i].zvel; + } } break; } @@ -7665,6 +7678,35 @@ static void G_MoveEffectors(void) //STATNUM 3 ActorExtra[i].lightptr->sector = sprite[i].sectnum; ActorExtra[i].lightptr->flags.invalidate = 1; } + if (SHT != ActorExtra[i].lightptr->range) + { + ActorExtra[i].lightptr->range = SHT; + ActorExtra[i].lightptr->flags.invalidate = 1; + } + if ((sprite[i].xvel != ActorExtra[i].lightptr->color[0]) || + (sprite[i].yvel != ActorExtra[i].lightptr->color[1]) || + (sprite[i].zvel != ActorExtra[i].lightptr->color[2])) + { + ActorExtra[i].lightptr->color[0] = sprite[i].xvel; + ActorExtra[i].lightptr->color[1] = sprite[i].yvel; + ActorExtra[i].lightptr->color[2] = sprite[i].zvel; + } + if (((256-(SS+128))<<1) != ActorExtra[i].lightptr->radius) + { + ActorExtra[i].lightptr->radius = (256-(SS+128))<<1; + ActorExtra[i].lightptr->faderadius = (int16_t)(ActorExtra[i].lightptr->radius * 0.75f); + ActorExtra[i].lightptr->flags.invalidate = 1; + } + if (SA != ActorExtra[i].lightptr->angle) + { + ActorExtra[i].lightptr->angle = SA; + ActorExtra[i].lightptr->flags.invalidate = 1; + } + if (SH != ActorExtra[i].lightptr->horiz) + { + ActorExtra[i].lightptr->horiz = SH; + ActorExtra[i].lightptr->flags.invalidate = 1; + } } break;