- Fixed drawing of wide high resolution skies. (At least for the samples I

received. I'm not convinced that it's yet fixed for the general case.)


SVN r1930 (trunk)
This commit is contained in:
Randy Heit 2009-10-24 04:39:36 +00:00
commit 1c9b693087
4 changed files with 20 additions and 15 deletions

View file

@ -834,6 +834,6 @@ void R_UpdateAnimations (DWORD mstime)
// Scroll the sky
double ms = (double)mstime * FRACUNIT;
sky1pos = fixed_t(fmod (ms * level.skyspeed1, double(TexMan[sky1texture]->GetWidth() << FRACBITS)));
sky2pos = fixed_t(fmod (ms * level.skyspeed2, double(TexMan[sky2texture]->GetWidth() << FRACBITS)));
sky1pos = fixed_t(fmod (ms * level.skyspeed1, double(TexMan[sky1texture]->GetScaledWidth() << FRACBITS)));
sky2pos = fixed_t(fmod (ms * level.skyspeed2, double(TexMan[sky2texture]->GetScaledWidth() << FRACBITS)));
}