aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-08-17 17:14:00 +0200
committeruruk2013-08-17 17:14:00 +0200
commit50831c19018598bc4a9007e6d71cd3986e5fd196 (patch)
treeb1863662f2958739efc1ff1222cab9fdeb5b9917 /engines
parent6555d7d5db7431f3c707da85c33925c415483898 (diff)
downloadscummvm-rg350-50831c19018598bc4a9007e6d71cd3986e5fd196.tar.gz
scummvm-rg350-50831c19018598bc4a9007e6d71cd3986e5fd196.tar.bz2
scummvm-rg350-50831c19018598bc4a9007e6d71cd3986e5fd196.zip
AVALANCHE: Implement Trip::newspeed().
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/trip6.cpp26
1 files changed, 23 insertions, 3 deletions
diff --git a/engines/avalanche/trip6.cpp b/engines/avalanche/trip6.cpp
index dfcdd5ce20..1114bd52fb 100644
--- a/engines/avalanche/trip6.cpp
+++ b/engines/avalanche/trip6.cpp
@@ -1077,9 +1077,29 @@ void Trip::open_the_door(byte whither, byte ped, byte magicnum) {
}
void Trip::newspeed() {
-/* Given that you've just changed the speed in triptype.xs, this adjusts
- ix. */
- warning("STUB: Trip::newspeed()");
+ // Given that you've just changed the speed in triptype.xs, this adjusts ix.
+ const bytefield lightspace = {40, 199, 47, 199};
+ byte page_;
+
+ tr[0].ix = (tr[0].ix / 3) * tr[0].xs;
+ //setactivepage(3);
+
+ if (tr[0].xs == _vm->_gyro->run)
+ _vm->_graphics->_surface.drawLine(371, 199, 373, 199, yellow);
+ else
+ _vm->_graphics->_surface.drawLine(336, 199, 338, 199, yellow);
+
+ if (tr[0].xs == _vm->_gyro->run)
+ _vm->_graphics->_surface.drawLine(336, 199, 338, 199, lightblue);
+ else
+ _vm->_graphics->_surface.drawLine(371, 199, 373, 199, lightblue);
+
+ _vm->_graphics->refreshScreen();
+
+ //setactivepage(1 - cp);
+ for (page_ = 0; page_ <= 1; page_ ++)
+ getset[page_].remember(lightspace);
+
}
void Trip::rwsp(byte t, byte r) {