- 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

@ -115,11 +115,9 @@ void R_InitSkyMap ()
}
// The (standard Doom) sky map is 256*128*4 maps.
sky1shift = 22+skystretch-16;
sky2shift = 22+skystretch-16;
if (skytex1->WidthBits >= 9)
sky1shift -= skystretch;
if (skytex2->WidthBits >= 9)
sky2shift -= skystretch;
int swidth = skytex1->GetScaledWidth();
sky1shift = 22 - 16 + (skystretch && swidth < 512) - (swidth >= 1024 && skytex1->xScale >= 4*FRACUNIT);
swidth = skytex2->GetScaledWidth();
sky2shift = 22 - 16 + (skystretch && swidth < 512) - (swidth >= 1024 && skytex2->xScale >= 4*FRACUNIT);
}