- Fixed: G_SerializeLevel must use the TEXMAN_ReturnFirst flag for getting

the sky textures so that it still works when the first texture in a TEXTURE1
  lump is used as sky.

SVN r1412 (trunk)
This commit is contained in:
Christoph Oelckers 2009-02-07 08:52:07 +00:00
parent 0c9f735357
commit 125be6b54e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
February 7, 2009 (Changes by Graf Zahl)
- Fixed: G_SerializeLevel must use the TEXMAN_ReturnFirst flag for getting
the sky textures so that it still works when the first texture in a TEXTURE1
lump is used as sky.
February 6, 2009
- Restored the old drawseg/sprite distance check from 2.0.63. The code that
replaced it did the check at the center of the area intersected by the

View file

@ -1421,8 +1421,8 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
{
strncpy (level.skypic1, arc.ReadName(), 8);
strncpy (level.skypic2, arc.ReadName(), 8);
sky1texture = TexMan.GetTexture (level.skypic1, FTexture::TEX_Wall, FTextureManager::TEXMAN_Overridable);
sky2texture = TexMan.GetTexture (level.skypic2, FTexture::TEX_Wall, FTextureManager::TEXMAN_Overridable);
sky1texture = TexMan.GetTexture (level.skypic1, FTexture::TEX_Wall, FTextureManager::TEXMAN_Overridable|FTextureManager::TEXMAN_ReturnFirst);
sky2texture = TexMan.GetTexture (level.skypic2, FTexture::TEX_Wall, FTextureManager::TEXMAN_Overridable|FTextureManager::TEXMAN_ReturnFirst);
R_InitSkyMap ();
}