aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-05 12:33:15 +0200
committeruruk2013-07-05 12:33:15 +0200
commit397ebad3851a989412dd052f5afd8554bc684091 (patch)
tree77effeda48a67c00d0dbc5701636133002ba1195 /engines
parent617898d42c996380d7f0253e9c7cf52cd50688ea (diff)
downloadscummvm-rg350-397ebad3851a989412dd052f5afd8554bc684091.tar.gz
scummvm-rg350-397ebad3851a989412dd052f5afd8554bc684091.tar.bz2
scummvm-rg350-397ebad3851a989412dd052f5afd8554bc684091.zip
AVALANCHE: Minor repairs regarding file handling.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/gyro2.cpp2
-rw-r--r--engines/avalanche/lucerna2.cpp8
2 files changed, 3 insertions, 7 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp
index 2dd2a28e0b..7485648eea 100644
--- a/engines/avalanche/gyro2.cpp
+++ b/engines/avalanche/gyro2.cpp
@@ -527,7 +527,7 @@ void Gyro::load_a_mouse(byte which) {
vmc.ofsx = -mps[which].horzhotspot;
vmc.ofsy = -mps[which].verthotspot;
- setminmaxhorzcurspos(mps[which].horzhotspot, 624 + mps[which].horzhotspot);
+ setminmaxhorzcurspos(mps[which].horzhotspot + 3, 624 + mps[which].horzhotspot);
setminmaxvertcurspos(mps[which].verthotspot, 199);
}
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 68912c208f..79dcd93dae 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -103,15 +103,12 @@ void Lucerna::scram1(Common::String &x) {
}
void Lucerna::unscramble() {
- for (byte fv = 0; fv <= 30; fv ++)
- for (byte ff = 0; ff <= 1; ff ++)
+ for (byte fv = 0; fv < 31; fv ++)
+ for (byte ff = 0; ff < 2; ff ++)
if (_vm->_gyro.also[fv][ff] != 0)
scram1(*_vm->_gyro.also[fv][ff]);
scram1(_vm->_gyro.listen);
scram1(_vm->_gyro.flags);
- /* for fz:=1 to length(_vm->_gyro.also[fv,ff]^) do
- _vm->_gyro.also[fv,ff]^[fz]:=chr(ord(_vm->_gyro.also[fv,ff]^[fz]) xor 177);*/
- warning("STUB: Lucerna::unscramble()");
}
void Lucerna::load_also(char *n) {
@@ -197,7 +194,6 @@ void Lucerna::load_also(char *n) {
unscramble();
for (fv = 0; fv <= minnames; fv++)
*_vm->_gyro.also[fv][0] = Common::String(',') + *_vm->_gyro.also[fv][0] + ',';
-
}
void Lucerna::load(byte n) { /* Load2, actually */