diff --git a/src/r_sky.cpp b/src/r_sky.cpp index 5c62a81ac..7ff9973f0 100644 --- a/src/r_sky.cpp +++ b/src/r_sky.cpp @@ -137,12 +137,12 @@ void R_UpdateSky (uint64_t mstime) for(auto Level : AllLevels()) { // Scroll the sky - Level->sky1pos = ms * level.skyspeed1; - Level->sky2pos = ms * level.skyspeed2; + Level->sky1pos = ms * Level->skyspeed1; + Level->sky2pos = ms * Level->skyspeed2; // 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_sky2pos = (float)(fmod((double(mstime) * level.skyspeed2), 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.)); } }