aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-01-11 23:56:20 +0100
committerTorbjörn Andersson2012-01-12 00:00:26 +0100
commitc456d6d29a6c94d1b051456cb9b242b8eda756f7 (patch)
tree3ff06f9db2e893cfa720b9e835a5551645b164f5
parent0998c64c20f5e1d24da28531b26f327114bcd57d (diff)
downloadscummvm-rg350-c456d6d29a6c94d1b051456cb9b242b8eda756f7.tar.gz
scummvm-rg350-c456d6d29a6c94d1b051456cb9b242b8eda756f7.tar.bz2
scummvm-rg350-c456d6d29a6c94d1b051456cb9b242b8eda756f7.zip
DREAMWEB: Rewrite a comment, since the old one could be misread
I read it as "this is how the original code expects save slots to be initialized", but I guess it could be read as "the original engine had 21 save slots". Which it didn't.
-rw-r--r--engines/dreamweb/saveload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp
index 3f2c922feb..761ce7696f 100644
--- a/engines/dreamweb/saveload.cpp
+++ b/engines/dreamweb/saveload.cpp
@@ -646,7 +646,9 @@ void DreamWebEngine::loadPosition(unsigned int slot) {
// Count number of save files, and load their descriptions into _saveNames
uint DreamWebEngine::scanForNames() {
- // Initialize the first 21 slots (like the original code expects)
+ // There are 21 save slots, each of which are 17 bytes. The first byte
+ // doesn't seem to be used. The name starts at the second byte. All the
+ // slots are initialized to be empty.
for (unsigned int slot = 0; slot < 21; ++slot) {
_saveNames[17 * slot + 0] = 2;
_saveNames[17 * slot + 1] = 0;