aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_state.cpp
diff options
context:
space:
mode:
authorDavid Fioramonti2018-04-26 14:27:59 -0700
committerBastien Bouclet2018-04-27 19:22:00 +0200
commit52e247e2397f189667d4637241c25050c6279224 (patch)
treeb82acba6f73d9539ba806ca8b6042dc2a66b3751 /engines/mohawk/myst_state.cpp
parentf125ffb89c59f9f8ad56090f151cc09f52c9f76f (diff)
downloadscummvm-rg350-52e247e2397f189667d4637241c25050c6279224.tar.gz
scummvm-rg350-52e247e2397f189667d4637241c25050c6279224.tar.bz2
scummvm-rg350-52e247e2397f189667d4637241c25050c6279224.zip
MOHAWK: MYST: Make Dni/Atrus endings an enum
The global variable "ending" tracks various states that Atrus can be in. This variable determines what video of Atrus will be playing and if the brother books have been destroyed. Despite this variable being called ending there are other endings not captured by this variable (like the brother endings). Also change spelling of Dini to Dni for one usage of ActiveAge from a previous commit.
Diffstat (limited to 'engines/mohawk/myst_state.cpp')
-rw-r--r--engines/mohawk/myst_state.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/myst_state.cpp b/engines/mohawk/myst_state.cpp
index f1b0b9de39..ab98da1f00 100644
--- a/engines/mohawk/myst_state.cpp
+++ b/engines/mohawk/myst_state.cpp
@@ -79,7 +79,9 @@ MystGameState::MystGameState(MohawkEngine_Myst *vm, Common::SaveFileManager *sav
_globals.u0 = 2;
// Current Age / Stack - Start in Myst
_globals.currentAge = kMystStart;
+ _globals.heldPage = kNoPage;
_globals.u1 = 1;
+ _globals.ending = kDniNotVisited;
// Library Bookcase Door - Default to Up
_myst.libraryBookcaseDoor = 1;