aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-04-08 00:24:46 +0000
committerTravis Howell2006-04-08 00:24:46 +0000
commite951f908f2699a46387f69df8a7703bcd4055db2 (patch)
tree15f4cce2ea05a2c70640b4ea7555898e90c1bf3f /engines
parentdaa60166feac99ffc96962a9668a1ee272cdc4d0 (diff)
downloadscummvm-rg350-e951f908f2699a46387f69df8a7703bcd4055db2.tar.gz
scummvm-rg350-e951f908f2699a46387f69df8a7703bcd4055db2.tar.bz2
scummvm-rg350-e951f908f2699a46387f69df8a7703bcd4055db2.zip
Fix load game display of oracle in FF
svn-id: r21677
Diffstat (limited to 'engines')
-rw-r--r--engines/simon/oracle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/simon/oracle.cpp b/engines/simon/oracle.cpp
index 1c15cd60d2..825d12aafc 100644
--- a/engines/simon/oracle.cpp
+++ b/engines/simon/oracle.cpp
@@ -162,8 +162,8 @@ void SimonEngine::listSaveGames(int n) {
memset(b, 0, 108);
maxFiles = countSaveGames();
- j = maxFiles - n + 1;
- k = maxFiles - j + 1;
+ j = maxFiles - n;
+ k = maxFiles - j;
z = maxFiles;
if (getBitFlag(95)) {
j++;
@@ -179,8 +179,7 @@ void SimonEngine::listSaveGames(int n) {
}
if (getBitFlag(93)) {
- if (((_newLines + 1) >= _textWindow->scrollY) && (
- (_newLines + 1) < (_textWindow->scrollY + 3)))
+ if (((_newLines + 1) >= _textWindow->scrollY) && ((_newLines + 1) < (_textWindow->scrollY + 3)))
OK = 1;
}
@@ -202,6 +201,7 @@ void SimonEngine::listSaveGames(int n) {
j--;
}
+ printf("Opened saved game %s\n", gen_savename(j));
if (!(in = _saveFileMan->openForLoading(gen_savename(j))))
break;
in->read(b, 100);