- missed a few references

This commit is contained in:
Christoph Oelckers 2019-01-29 15:22:26 +01:00
parent 3c565c9e86
commit eb5a39960e

View file

@ -137,12 +137,12 @@ void R_UpdateSky (uint64_t mstime)
for(auto Level : AllLevels()) for(auto Level : AllLevels())
{ {
// Scroll the sky // Scroll the sky
Level->sky1pos = ms * level.skyspeed1; Level->sky1pos = ms * Level->skyspeed1;
Level->sky2pos = ms * level.skyspeed2; Level->sky2pos = ms * Level->skyspeed2;
// The hardware renderer uses a different value range and clamps it to a single rotation // The hardware renderer uses a different value range and clamps it to a single rotation
Level->hw_sky1pos = (float)(fmod((double(mstime) * level.skyspeed1), 1024.) * (90. / 256.)); Level->hw_sky1pos = (float)(fmod((double(mstime) * Level->skyspeed1), 1024.) * (90. / 256.));
Level->hw_sky2pos = (float)(fmod((double(mstime) * level.skyspeed2), 1024.) * (90. / 256.)); Level->hw_sky2pos = (float)(fmod((double(mstime) * Level->skyspeed2), 1024.) * (90. / 256.));
} }
} }