aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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 */