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
This commit is contained in:
hendricks266 2019-07-18 03:06:47 +00:00 committed by Christoph Oelckers
parent 1ec5547a9c
commit 844ec0bd63

View file

@ -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;
}