Menus: Fix the recently introduced bug that would take the keypress given at "PRESS OPEN TO RESTART LEVEL" as a yes at the following prompt to load your most recent savegame, seemingly without asking.

git-svn-id: https://svn.eduke32.com/eduke32@4507 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-06-13 09:04:05 +00:00
parent 4424648917
commit 7f3708b55d

View file

@ -35,6 +35,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "osdcmds.h"
#include "osd.h"
#include "menus.h"
#include "input.h"
#ifdef LUNATIC
# include "lunatic_game.h"
@ -994,6 +995,7 @@ static int32_t VM_ResetPlayer(int32_t g_p, int32_t g_flags)
{
g_player[g_p].ps->gm |= MODE_MENU;
KB_ClearKeyDown(sc_Space);
I_AdvanceTriggerClear();
M_ChangeMenu(MENU_RESETPLAYER);
}
else g_player[g_p].ps->gm = MODE_RESTART;