Skip to content
Snippets Groups Projects
Commit db6bd42e authored by SteelT's avatar SteelT
Browse files

Allow the game to continue even if the `STARTUP` lump is somehow missing

parent 4509cd37
No related branches found
No related tags found
No related merge requests found
...@@ -731,6 +731,7 @@ tic_t rendergametic; ...@@ -731,6 +731,7 @@ tic_t rendergametic;
void D_SRB2Loop(void) void D_SRB2Loop(void)
{ {
tic_t oldentertics = 0, entertic = 0, realtics = 0, rendertimeout = INFTICS; tic_t oldentertics = 0, entertic = 0, realtics = 0, rendertimeout = INFTICS;
static lumpnum_t gstartuplumpnum;
if (dedicated) if (dedicated)
server = true; server = true;
...@@ -770,7 +771,12 @@ void D_SRB2Loop(void) ...@@ -770,7 +771,12 @@ void D_SRB2Loop(void)
*/ */
/* Smells like a hack... Don't fade Sonic's ass into the title screen. */ /* Smells like a hack... Don't fade Sonic's ass into the title screen. */
if (gamestate != GS_TITLESCREEN) if (gamestate != GS_TITLESCREEN)
V_DrawScaledPatch(0, 0, 0, W_CachePatchNum(W_GetNumForName("STARTUP"), PU_PATCH)); {
gstartuplumpnum = W_CheckNumForName("STARTUP");
if (gstartuplumpnum == LUMPERROR)
gstartuplumpnum = W_GetNumForName("MISSING");
V_DrawScaledPatch(0, 0, 0, W_CachePatchNum(gstartuplumpnum, PU_PATCH));
}
for (;;) for (;;)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment