Avoid a crash

This commit is contained in:
Jaime Passos 2020-05-09 17:26:27 -03:00
parent 39c5ab4e17
commit 38c74cecc0

View file

@ -323,7 +323,6 @@ void Y_IntermissionDrawer(void)
if (rendermode == render_none) if (rendermode == render_none)
return; return;
if (!usebuffer)
// Lactozilla: Renderer switching // Lactozilla: Renderer switching
if (needpatchrecache) if (needpatchrecache)
{ {
@ -364,11 +363,11 @@ void Y_IntermissionDrawer(void)
{ {
if (widebgpatch && rendermode == render_soft && vid.width / vid.dupx == 400) if (widebgpatch && rendermode == render_soft && vid.width / vid.dupx == 400)
V_DrawScaledPatch(0, 0, V_SNAPTOLEFT, widebgpatch); V_DrawScaledPatch(0, 0, V_SNAPTOLEFT, widebgpatch);
else else if (bgpatch)
V_DrawScaledPatch(0, 0, 0, bgpatch); V_DrawScaledPatch(0, 0, 0, bgpatch);
} }
} }
else else if (bgtile)
V_DrawPatchFill(bgtile); V_DrawPatchFill(bgtile);
LUAh_IntermissionHUD(); LUAh_IntermissionHUD();