- fixed: The intermission screen did not initialize its texture variable when the texture was invalid.

SVN r3023 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-07 16:16:31 +00:00
parent 9ad2a2b00e
commit d54ee47656

View file

@ -110,12 +110,8 @@ void DIntermissionScreen::Init(FIntermissionAction *desc, bool first)
{
texname = GStrings[texname+1];
}
FTextureID tex = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch);
if (tex.isValid())
{
mBackground = tex;
mFlatfill = desc->mFlatfill;
}
mBackground = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch);
mFlatfill = desc->mFlatfill;
S_Sound (CHAN_VOICE | CHAN_UI, desc->mSound, 1.0f, ATTN_NONE);
if (desc->mPalette.IsNotEmpty() && (lumpnum = Wads.CheckNumForFullName(desc->mPalette, true)) > 0)
{