mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
- use gFrameClock in DoSectorLighting
The higher precision of gameclock went totally unused in here.
This commit is contained in:
parent
d0a3e1781e
commit
e320e79df0
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ void DoSectorLighting(void)
|
||||||
{
|
{
|
||||||
t2 = mulscale16(t2, pXSector->busy);
|
t2 = mulscale16(t2, pXSector->busy);
|
||||||
}
|
}
|
||||||
int v4 = GetWaveValue(t1, pXSector->phase*8+pXSector->freq*gameclock, t2);
|
int v4 = GetWaveValue(t1, pXSector->phase*8+pXSector->freq*gFrameClock, t2);
|
||||||
if (pXSector->shadeFloor)
|
if (pXSector->shadeFloor)
|
||||||
{
|
{
|
||||||
sector[nSector].floorshade = ClipRange(sector[nSector].floorshade+v4, -128, 127);
|
sector[nSector].floorshade = ClipRange(sector[nSector].floorshade+v4, -128, 127);
|
||||||
|
|
Loading…
Reference in a new issue