mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 04:33:02 +00:00
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:
parent
6bd29a51b1
commit
dcd63aece9
1 changed files with 5 additions and 10 deletions
15
src/d_main.c
15
src/d_main.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue