Use MODE_RESTART in osdcmd_map() when already in a game

git-svn-id: https://svn.eduke32.com/eduke32@7209 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-11-18 18:12:06 +00:00
parent fb15d84982
commit 871207294e

View file

@ -278,7 +278,12 @@ static int osdcmd_map(osdcmdptr_t parm)
ud.multimode = 1;
G_NewGame_EnterLevel();
if (g_player[myconnectindex].ps->gm & MODE_GAME)
{
G_NewGame(ud.m_volume_number, ud.m_level_number, ud.m_player_skill);
g_player[myconnectindex].ps->gm = MODE_RESTART;
}
else G_NewGame_EnterLevel();
return OSDCMD_OK;
}