Repair bootmap.

We're not even going to use this feature, but it showed up as nonsensical while reviewing, and would take more work to strip out
This commit is contained in:
toaster 2022-09-16 23:40:42 +01:00
parent 6bd29a51b1
commit dcd63aece9

View file

@ -1709,19 +1709,14 @@ void D_SRB2Main(void)
// rei/miru: bootmap (Idea: starts the game on a predefined map)
if (bootmap && !(M_CheckParm("-warp") && M_IsNextParm()))
{
const INT32 bootMapNum = G_MapNumber(bootmap)+1;
pstartmap = G_MapNumber(bootmap)+1;
if (mapheaderinfo[bootMapNum])
if (pstartmap == nummapheaders)
{
pstartmap = bootMapNum;
if (pstartmap < 1 || pstartmap > NUMMAPS)
I_Error("Cannot warp to map %d (out of range)\n", pstartmap);
else
{
autostart = true;
}
I_Error("Cannot warp to map %s (not found)\n", bootmap);
}
autostart = true;
}
if (autostart || netgame)