aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_saveload.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-11 19:44:55 +0000
committerMatthew Hoops2011-01-11 19:44:55 +0000
commitf6b7979277cc83e29ac9c6a7dc28a1e1e0dccfbf (patch)
tree24686656a7c524e80ad01f268ecd086b774cff1e /engines/mohawk/riven_saveload.cpp
parentd03ff6e036c3ff2818ccd9e2e27d63b56f11d18b (diff)
downloadscummvm-rg350-f6b7979277cc83e29ac9c6a7dc28a1e1e0dccfbf.tar.gz
scummvm-rg350-f6b7979277cc83e29ac9c6a7dc28a1e1e0dccfbf.tar.bz2
scummvm-rg350-f6b7979277cc83e29ac9c6a7dc28a1e1e0dccfbf.zip
MOHAWK: Implement Riven's whark number puzzle
svn-id: r55207
Diffstat (limited to 'engines/mohawk/riven_saveload.cpp')
-rw-r--r--engines/mohawk/riven_saveload.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/mohawk/riven_saveload.cpp b/engines/mohawk/riven_saveload.cpp
index 881e171b84..c7b5cd01fd 100644
--- a/engines/mohawk/riven_saveload.cpp
+++ b/engines/mohawk/riven_saveload.cpp
@@ -147,7 +147,7 @@ bool RivenSaveLoad::loadGame(Common::String filename) {
uint16 stackID = 0;
uint16 cardID = 0;
- for (uint32 i = 0; i < rawVariables.size() && i < namesCount && !names->eos(); i++) {
+ for (uint32 i = 0; i < namesCount && !names->eos(); i++) {
names->seek(curNamesPos);
names->seek(stringOffsets[i], SEEK_CUR);
@@ -159,10 +159,9 @@ bool RivenSaveLoad::loadGame(Common::String filename) {
c = (char)names->readByte();
}
- // TODO: Some versions have two extra variables. However, the saves are
- // still compatible with other saves of the same version (they come from DVD v1.1).
- // There are used in the whark number puzzle. I thought jleftpos and jrightpos were
- // for this purpose.
+ // These are timing variables used with the DVD version of Riven for the whark
+ // puzzle and are not needed at all. See xjschool280_resetleft() and
+ // xjschool280_resetright.
if (name == "dropLeftStart" || name == "dropRightStart")
continue;