mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Probably fix crash when reaching light count limit in G_MoveEffectors SE50 code.
git-svn-id: https://svn.eduke32.com/eduke32@2320 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
997375bd20
commit
5846d73d30
1 changed files with 5 additions and 3 deletions
|
@ -7883,11 +7883,13 @@ 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 (actor[i].lightptr->horiz != SH)
|
||||
SH = actor[i].lightptr->horiz;
|
||||
// Hack in case polymer_addlight tweaked the horiz value
|
||||
if (actor[i].lightptr->horiz != SH)
|
||||
SH = actor[i].lightptr->horiz;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue