- fixed handling of missing backgrounds for intermission text screens for real this time.

SVN r3041 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-15 08:00:38 +00:00
commit 772d59dff4
2 changed files with 14 additions and 3 deletions

View file

@ -110,8 +110,11 @@ void DIntermissionScreen::Init(FIntermissionAction *desc, bool first)
{
texname = GStrings[texname+1];
}
mBackground = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch);
mFlatfill = desc->mFlatfill;
if (texname[0] != 0)
{
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)
{