- Fixed: When using PALVERS on the sky, it used the scaling from the true color version. (Side Note: I changed a line that scales the sky position according to the y scaling factor. This is because a 2x high resolution sky at 2048x256 wasn't positioned the same as a 1024x128 unscaled version. I moved the expression to the > 200 height path only, but I'm not sure if it's even still needed.)
- Fixed: PALVERS crashed with unknown textures since a value was never given for %s. - Fixed: FON2 loader didn't set ActiveColors correctly. SVN r3973 (trunk)
This commit is contained in:
parent
c5ffb499ee
commit
c845675b9b
3 changed files with 14 additions and 10 deletions
|
|
@ -69,8 +69,8 @@ void R_InitSkyMap ()
|
|||
int skyheight;
|
||||
FTexture *skytex1, *skytex2;
|
||||
|
||||
skytex1 = TexMan[sky1texture];
|
||||
skytex2 = TexMan[sky2texture];
|
||||
skytex1 = TexMan(sky1texture, true);
|
||||
skytex2 = TexMan(sky2texture, true);
|
||||
|
||||
if (skytex1 == NULL)
|
||||
return;
|
||||
|
|
@ -107,9 +107,8 @@ void R_InitSkyMap ()
|
|||
}
|
||||
else if (skyheight > 200)
|
||||
{
|
||||
skytexturemid = (200 - skyheight) << FRACBITS;
|
||||
skytexturemid = FixedMul((200 - skyheight) << FRACBITS, skytex1->yScale);
|
||||
}
|
||||
skytexturemid = FixedMul(skytexturemid, skytex1->yScale);
|
||||
|
||||
if (viewwidth != 0 && viewheight != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue