mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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
This commit is contained in:
parent
20a251d155
commit
e3a2e0a066
1 changed files with 42 additions and 0 deletions
|
@ -7616,6 +7616,19 @@ static void G_MoveEffectors(void) //STATNUM 3
|
||||||
ActorExtra[i].lightptr->sector = sprite[i].sectnum;
|
ActorExtra[i].lightptr->sector = sprite[i].sectnum;
|
||||||
ActorExtra[i].lightptr->flags.invalidate = 1;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -7665,6 +7678,35 @@ static void G_MoveEffectors(void) //STATNUM 3
|
||||||
ActorExtra[i].lightptr->sector = sprite[i].sectnum;
|
ActorExtra[i].lightptr->sector = sprite[i].sectnum;
|
||||||
ActorExtra[i].lightptr->flags.invalidate = 1;
|
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;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue