mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Fix infinite loop in DimLights(). Should fix game locking up when finishing the final level.
This commit is contained in:
parent
cdf44030d7
commit
7b60bfdb95
1 changed files with 3 additions and 2 deletions
|
@ -1490,9 +1490,10 @@ void DimLights()
|
|||
if (sector[i].floorshade < 100)
|
||||
sector[i].floorshade++;
|
||||
|
||||
int nWall = sector[i].wallptr;
|
||||
short startwall = sector[i].wallptr;
|
||||
short endwall = startwall + sector[i].wallnum;
|
||||
|
||||
while (nWall < nWall + sector[i].wallnum)
|
||||
for (int nWall = startwall; nWall < endwall; nWall++)
|
||||
{
|
||||
if (wall[nWall].shade < 100)
|
||||
wall[nWall].shade++;
|
||||
|
|
Loading…
Reference in a new issue