- use gFrameClock in DoSectorLighting

The higher precision of gameclock went totally unused in here.
This commit is contained in:
Christoph Oelckers 2020-09-01 20:12:02 +02:00
parent d0a3e1781e
commit e320e79df0

View file

@ -168,7 +168,7 @@ void DoSectorLighting(void)
{
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)
{
sector[nSector].floorshade = ClipRange(sector[nSector].floorshade+v4, -128, 127);