mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- fixed: The sky baseline position needs to take texture scaling into account.
SVN r1982 (trunk)
This commit is contained in:
parent
6310f32843
commit
6161702703
4 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
November 15, 2009 (Changes by Graf Zahl)
|
||||
- fixed: The sky baseline position needs to take texture scaling into account.
|
||||
|
||||
November 14, 2009
|
||||
- Do not squash skies taller than 200 into square pixels.
|
||||
|
||||
|
|
|
@ -1313,7 +1313,7 @@ void R_DrawSkyPlane (visplane_t *pl)
|
|||
}
|
||||
|
||||
frontskytex = TexMan(s->GetTexture(pos));
|
||||
if (frontskytex->UseType == FTexture::TEX_Null)
|
||||
if (frontskytex == NULL || frontskytex->UseType == FTexture::TEX_Null)
|
||||
{ // [RH] The blank texture: Use normal sky instead.
|
||||
goto sky1;
|
||||
}
|
||||
|
|
|
@ -110,6 +110,7 @@ void R_InitSkyMap ()
|
|||
{
|
||||
skytexturemid = (200 - skyheight) << FRACBITS;
|
||||
}
|
||||
skytexturemid = FixedMul(skytexturemid, skytex1->yScale);
|
||||
|
||||
if (viewwidth != 0 && viewheight != 0)
|
||||
{
|
||||
|
|
|
@ -144,7 +144,7 @@ FTexture::FTexture (const char *name, int lumpnum)
|
|||
WidthBits(0), HeightBits(0), xScale(FRACUNIT), yScale(FRACUNIT), SourceLump(lumpnum),
|
||||
UseType(TEX_Any), bNoDecals(false), bNoRemap0(false), bWorldPanning(false),
|
||||
bMasked(true), bAlphaTexture(false), bHasCanvas(false), bWarped(0), bComplex(false),
|
||||
Rotations(0xFFFF), Width(0), Height(0), WidthMask(0), Native(NULL)
|
||||
Rotations(0xFFFF), SkyOffset(0), Width(0), Height(0), WidthMask(0), Native(NULL)
|
||||
{
|
||||
id.SetInvalid();
|
||||
if (name != NULL)
|
||||
|
|
Loading…
Reference in a new issue