aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-07-24 22:20:21 +0200
committeruruk2013-07-24 22:20:21 +0200
commit63fbb1d04f338d88d6a40a636af3fd4bbc97de1c (patch)
treeacd2c221e26ab9fd01216dd990cfaf7696f61efd /engines/avalanche
parente5fb4e3866e8a23b80e99e4cce4509a362e916c3 (diff)
downloadscummvm-rg350-63fbb1d04f338d88d6a40a636af3fd4bbc97de1c.tar.gz
scummvm-rg350-63fbb1d04f338d88d6a40a636af3fd4bbc97de1c.tar.bz2
scummvm-rg350-63fbb1d04f338d88d6a40a636af3fd4bbc97de1c.zip
AVALANCHE: Implement Lucerna::find_people().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/gyro2.cpp5
-rw-r--r--engines/avalanche/lucerna2.cpp4
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp
index f759f89313..fa1298a322 100644
--- a/engines/avalanche/gyro2.cpp
+++ b/engines/avalanche/gyro2.cpp
@@ -356,7 +356,8 @@ void Gyro::newgame() { /* This sets up the DNA for a completely new game. */
_vm->_trip->tr[0].init(0, true, _vm->_trip);
alive = true;
- score = 0; /*for gd:=0 to 5 do which[gd]:=1;*/
+ score = 0;
+ /*for gd:=0 to 5 do which[gd]:=1;*/
memset(&_vm->_gyro->dna, 0, sizeof(dnatype));
_vm->_scrolls->natural();
_vm->_basher->normal_edit();
@@ -377,7 +378,7 @@ void Gyro::newgame() { /* This sets up the DNA for a completely new game. */
seescroll = false;
ppos[0][1] = -177;
- _vm->_trip->tr[0].appear(300,117,right);
+ //_vm->_trip->tr[0].appear(300,117,right);
//for (gd = 0; gd <= 30; gd ++) for (gm = 0; gm <= 1; gm ++) also[gd][gm] = nil;
/* fillchar(previous^,sizeof(previous^),#0); { blank out array } */
him = 254;
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 1d22deb975..6ca03b073e 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -294,9 +294,9 @@ void Lucerna::zoomout(int16 x, int16 y) {
}
void Lucerna::find_people(byte room) {
- for (byte fv = 151; fv <= 178; fv++)
+ for (byte fv = 1; fv < 29; fv++) // There'll may be problems with this.
if (_vm->_gyro->whereis[fv] == room) {
- if (fv < 175)
+ if (fv < 25) // And this. See definition of whereis[].
_vm->_gyro->him = fv;
else
_vm->_gyro->her = fv;