Fix help menu not returning to main menu.

This commit is contained in:
Mari the Deer 2021-05-17 21:41:01 +02:00
commit 7f98c28089
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r494 \cu(Mon 17 May 21:34:39 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r494 \cu(2021-05-17 21:34:40)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r495 \cu(Mon 17 May 21:41:01 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r495 \cu(2021-05-17 21:41:01)\c-";

View file

@ -31,6 +31,7 @@ Class SWWMHelpMenu : GenericMenu
override void Init( Menu parent )
{
Super.Init(parent);
curpage = 0;
prevpage = -1;
fadetic = gametic;

View file

@ -310,8 +310,11 @@ Class SWWMStaticHandler : StaticEventHandler
Menu cur = Menu.GetCurrentMenu();
if ( cur is 'ReadThisMenu' )
{
Menu oldpt = cur.mParentMenu;
cur.Close();
Menu.SetMenu('SWWMHelpMenu');
cur = Menu.GetCurrentMenu();
if ( cur ) cur.mParentMenu = oldpt;
}
// Fancy crash effect
if ( (gamestate == GS_LEVEL) || (gamestate == GS_TITLELEVEL) )