mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 16:01:35 +00:00
Avoid a crash
This commit is contained in:
parent
39c5ab4e17
commit
38c74cecc0
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue