- fixed lockup on Shareware screen when quitting Duke

Two errors: the menu wasn’t closed and the shareware check was inverted.
This commit is contained in:
Christoph Oelckers 2020-10-12 08:07:51 +02:00
parent a792f329ca
commit 86ad576675
2 changed files with 2 additions and 1 deletions

View file

@ -216,6 +216,7 @@ CCMD(menu_quit)
DMenu* newmenu = CreateMessageBoxMenu(CurrentMenu, EndString, 0, false, NAME_None, []()
{
M_ClearMenus();
gi->ExitFromMenu();
});

View file

@ -98,7 +98,7 @@ template <class func>
void runtwoscreens(func completion)
{
// shareware and TEN screens
if (!isShareware() && !isRR())
if (isShareware() && !isRR())
showtwoscreens(completion);
else completion(false);
}