- Fixed: FloorAndCeiling_Raise/Lower did not work with slopes because they
used ZatPointDist instead of PointToDist to calculate the destination distance for the plane equation. - Fixed: Sky scroll positions could "jump" once they wrapped past position 32767. An fmod now keeps them within range of the sky textures' real widths. SVN r132 (trunk)
This commit is contained in:
parent
3431564b02
commit
2b91f31d86
3 changed files with 13 additions and 6 deletions
|
|
@ -803,6 +803,6 @@ void R_UpdateAnimations (DWORD mstime)
|
|||
|
||||
// Scroll the sky
|
||||
double ms = mstime * FRACUNIT;
|
||||
sky1pos = fixed_t(ms * level.skyspeed1);
|
||||
sky2pos = fixed_t(ms * level.skyspeed2);
|
||||
sky1pos = fixed_t(fmod (ms * level.skyspeed1, double(TexMan[sky1texture]->GetWidth() << FRACBITS)));
|
||||
sky2pos = fixed_t(fmod (ms * level.skyspeed2, double(TexMan[sky2texture]->GetWidth() << FRACBITS)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue