MOHAWK: Use PauseToken in menu stack

This commit is contained in:
Henrik "Henke37" Andersson 2020-03-15 14:54:53 +01:00 committed by Eugene Sandulenko
parent acf81a79c1
commit c1c90afbde
2 changed files with 4 additions and 2 deletions

View File

@ -108,7 +108,7 @@ uint16 Menu::getVar(uint16 var) {
}
void Menu::o_menuInit(uint16 var, const ArgumentsArray &args) {
_vm->pauseEngine(true);
_pauseToken = _vm->pauseEngine();
if (_inGame) {
_wasCursorVisible = CursorMan.isVisible();
@ -330,7 +330,7 @@ void Menu::o_menuExit(uint16 var, const ArgumentsArray &args) {
CursorMan.showMouse(_wasCursorVisible);
_vm->pauseEngine(false);
_pauseToken.clear();
}
void Menu::o_playIntroMovies(uint16 var, const ArgumentsArray &args) {

View File

@ -89,6 +89,8 @@ private:
const char **getButtonCaptions() const;
void resetButtons();
PauseToken _pauseToken;
};
} // End of namespace MystStacks