- moved the static sky variables into FLevelLocals and removed the redundant ones for the texture ID.

This commit is contained in:
Christoph Oelckers 2019-01-29 04:44:44 +01:00
commit 3c565c9e86
13 changed files with 89 additions and 91 deletions

View file

@ -1055,21 +1055,21 @@ CCMD(changesky)
if (netgame || argv.argc()<2) return;
// This only alters the primary level's sky setting. For testing out a sky that is sufficient.
sky1name = argv[1];
if (sky1name[0] != 0)
{
FTextureID newsky = TexMan.GetTextureID(sky1name, ETextureType::Wall, FTextureManager::TEXMAN_Overridable | FTextureManager::TEXMAN_ReturnFirst);
if (newsky.Exists())
{
// This only alters the primary level's sky setting.
sky1texture = currentUILevel->skytexture1 = newsky;
currentUILevel->skytexture1 = newsky;
}
else
{
Printf("changesky: Texture '%s' not found\n", sky1name);
}
}
R_InitSkyMap ();
InitSkyMap (currentUILevel);
}
//-----------------------------------------------------------------------------