aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-09-05 14:44:55 +0200
committeruruk2013-09-05 14:44:55 +0200
commit2d99f5bfc6cd0aab348147f6ddfc4fc47a88af2b (patch)
treec777f9e6e3383830834b93c6127f771ab734bea4 /engines/avalanche
parent3de1b45b62168b39824a6311344ded0edcf04cf3 (diff)
downloadscummvm-rg350-2d99f5bfc6cd0aab348147f6ddfc4fc47a88af2b.tar.gz
scummvm-rg350-2d99f5bfc6cd0aab348147f6ddfc4fc47a88af2b.tar.bz2
scummvm-rg350-2d99f5bfc6cd0aab348147f6ddfc4fc47a88af2b.zip
AVALANCHE: Repair some initialization to silence Valgrind warnings.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/avalot.cpp1
-rw-r--r--engines/avalanche/lucerna2.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index b1b5fe880b..a51d9e62e3 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -167,6 +167,7 @@ void Avalot::setup() {
_vm->_lucerna->dawn();
_vm->_parser->_cursorState = false;
_vm->_parser->cursorOn();
+ _vm->_trip->tr[0].xs = _vm->_gyro->walk;
_vm->_trip->newspeed();
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 4c9997e091..f026f040a1 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -64,8 +64,8 @@ Lucerna::~Lucerna() {
}
void Lucerna::init() {
- _vm->_gyro->oh = 17717;
- _vm->_gyro->om = 17717;
+ _vm->_gyro->oh = _vm->_gyro->onh = _vm->_gyro->om = 17717;
+
#if 0
if (_vm->_enhanced->atbios)
_vm->_gyro->atkey = "f1";