From c456d6d29a6c94d1b051456cb9b242b8eda756f7 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 11 Jan 2012 23:56:20 +0100 Subject: 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. --- engines/dreamweb/saveload.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/dreamweb/saveload.cpp') 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; -- cgit v1.2.3