From 844ec0bd63e121dfc93835ef507418426fa948a2 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 18 Jul 2019 03:06:47 +0000 Subject: [PATCH] Expose the current episode and skill selection in ud.m_volume_number and ud.m_player_skill while in their respective menus git-svn-id: https://svn.eduke32.com/eduke32@7804 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index 89bdf76be..3b0504957 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -2060,6 +2060,14 @@ static void Menu_Pre(MenuID_t cm) break; } + case MENU_EPISODE: + ud.m_volume_number = M_EPISODE.currentEntry < g_volumeCnt ? M_EPISODE.currentEntry : -1; + break; + + case MENU_SKILL: + ud.m_player_skill = M_SKILL.currentEntry+1; + break; + default: break; }