From 871207294efcfda6ea1977efbf859a0b910de3d1 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 18 Nov 2018 18:12:06 +0000 Subject: [PATCH] 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 --- source/duke3d/src/osdcmds.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/osdcmds.cpp b/source/duke3d/src/osdcmds.cpp index 201a62a35..6002fe291 100644 --- a/source/duke3d/src/osdcmds.cpp +++ b/source/duke3d/src/osdcmds.cpp @@ -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; }