diff options
author | dafioram | 2018-04-25 12:46:50 -0400 |
---|---|---|
committer | Bastien Bouclet | 2018-04-25 18:46:50 +0200 |
commit | 519e02da47ff972776350fa77ad1e6876a714106 (patch) | |
tree | d3c8233cc2f667d607fca0be2c36b9d8c07938ad /engines/mohawk/myst_scripts.cpp | |
parent | 09dbb50ee4a48bd3b6ab075c09d92f0a8ac2e77a (diff) | |
download | scummvm-rg350-519e02da47ff972776350fa77ad1e6876a714106.tar.gz scummvm-rg350-519e02da47ff972776350fa77ad1e6876a714106.tar.bz2 scummvm-rg350-519e02da47ff972776350fa77ad1e6876a714106.zip |
MOHAWK: MYST: Turn held page state into an enum
Previously, the held page stage was an unsigned int 16
with values 0-13. The enum will make its state more clear.
Diffstat (limited to 'engines/mohawk/myst_scripts.cpp')
-rw-r--r-- | engines/mohawk/myst_scripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index ef49907a8f..c1a593b430 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -378,7 +378,7 @@ void MystScriptParser::o_takePage(uint16 var, const ArgumentsArray &args) { cursorId = kDefaultMystCursor; } - uint16 oldPage = _globals.heldPage; + HeldPage oldPage = _globals.heldPage; // Take / drop page toggleVar(var); @@ -388,7 +388,7 @@ void MystScriptParser::o_takePage(uint16 var, const ArgumentsArray &args) { _vm->redrawArea(var); // Set new cursor - if (_globals.heldPage) + if (_globals.heldPage != kNoPage) _vm->setMainCursor(cursorId); else _vm->setMainCursor(kDefaultMystCursor); |