Add extra warning for CON_STARTUP_LOADSTEPS being incorrect

This commit is contained in:
Sally Coolatta 2020-10-25 10:48:32 -04:00
parent 12f56d64a7
commit 3469ab12ba
2 changed files with 7 additions and 1 deletions

View file

@ -1920,7 +1920,7 @@ void CON_DrawLoadBar(void)
if (con_startup_loadprogress > CON_STARTUP_LOADSTEPS)
{
Unlock_state();
I_Error("CON_STARTUP_LOADSTEPS has not been updated!\n");
I_Error("CON_STARTUP_LOADSTEPS is too low! (is %d, got %d)\n", CON_STARTUP_LOADSTEPS, con_startup_loadprogress);
return;
}

View file

@ -1843,6 +1843,12 @@ void D_SRB2Main(void)
DRPC_Init();
}
#endif
if (con_startup_loadprogress < CON_STARTUP_LOADSTEPS)
{
I_Error("CON_STARTUP_LOADSTEPS is too high! (is %d, got %d)\n", CON_STARTUP_LOADSTEPS, con_startup_loadprogress);
return;
}
}
const char *D_Home(void)