mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- missed a few references
This commit is contained in:
parent
3c565c9e86
commit
eb5a39960e
1 changed files with 4 additions and 4 deletions
|
@ -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.));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue