Fix infinite loop when requesting to open an invalid map from the command line.

git-svn-id: https://svn.eduke32.com/eduke32@6483 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-10-16 03:32:26 +00:00
parent ddd94d7b92
commit aea57fde17

View file

@ -6561,6 +6561,12 @@ MAIN_LOOP_RESTART:
G_SetCrosshairColor(CrosshairColors.r, CrosshairColors.g, CrosshairColors.b);
}
if (ud.warp_on == 1)
{
G_NewGame_EnterLevel();
// may change ud.warp_on in an error condition
}
if (ud.warp_on == 0)
{
if ((g_netServer || ud.multimode > 1) && boardfilename[0] != 0)
@ -6596,10 +6602,6 @@ MAIN_LOOP_RESTART:
}
}
}
else if (ud.warp_on == 1)
{
G_NewGame_EnterLevel();
}
else G_UpdateScreenArea();
// G_GameExit(" "); ///