diff options
author | Willem Jan Palenstijn | 2011-12-28 13:10:22 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-28 13:12:22 +0100 |
commit | 57e940f67896e0f085de23088754fe1682cd49db (patch) | |
tree | 1c05d1f7bdb461ec9385b7c21ab5a8ad0fe010d1 /engines/dreamweb/newplace.cpp | |
parent | 3752396aefc43beba2df6a47221407d805cb3a7b (diff) | |
download | scummvm-rg350-57e940f67896e0f085de23088754fe1682cd49db.tar.gz scummvm-rg350-57e940f67896e0f085de23088754fe1682cd49db.tar.bz2 scummvm-rg350-57e940f67896e0f085de23088754fe1682cd49db.zip |
DREAMWEB: Move all saved variables to a GameVars struct
The data segment is now completely unused.
Diffstat (limited to 'engines/dreamweb/newplace.cpp')
-rw-r--r-- | engines/dreamweb/newplace.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dreamweb/newplace.cpp b/engines/dreamweb/newplace.cpp index 3093968969..a460d2879e 100644 --- a/engines/dreamweb/newplace.cpp +++ b/engines/dreamweb/newplace.cpp @@ -25,8 +25,8 @@ namespace DreamGen { void DreamBase::newPlace() { - if (data.byte(kNeedtotravel) == 1) { - data.byte(kNeedtotravel) = 0; + if (_vars._needToTravel == 1) { + _vars._needToTravel = 0; selectLocation(); } else if (_autoLocation != 0xFF) { _newLocation = _autoLocation; @@ -84,7 +84,7 @@ void DreamBase::selectLocation() { checkCoords(destList); } - if (_quitRequested || _getBack == 1 || _newLocation == data.byte(kLocation)) { + if (_quitRequested || _getBack == 1 || _newLocation == _vars._location) { _newLocation = _realLocation; _getBack = 0; } |