mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- fixed: The intermission screen did not initialize its texture variable when the texture was invalid.
SVN r3023 (trunk)
This commit is contained in:
parent
9ad2a2b00e
commit
d54ee47656
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue