aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/animation.cpp
diff options
context:
space:
mode:
authorStrangerke2013-09-29 11:26:21 +0200
committerStrangerke2013-09-29 11:26:21 +0200
commit1af03774ccda57e153b3d3664613818645f5f4ff (patch)
treef1a230e5278a89a1c61cecac6943822035e4a860 /engines/avalanche/animation.cpp
parentef8b661c3d80a498f0bacf0b954764084c95262b (diff)
downloadscummvm-rg350-1af03774ccda57e153b3d3664613818645f5f4ff.tar.gz
scummvm-rg350-1af03774ccda57e153b3d3664613818645f5f4ff.tar.bz2
scummvm-rg350-1af03774ccda57e153b3d3664613818645f5f4ff.zip
AVALANCHE: Add some more graphic functions
Diffstat (limited to 'engines/avalanche/animation.cpp')
-rw-r--r--engines/avalanche/animation.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp
index 2a309f31a9..bf97328c5a 100644
--- a/engines/avalanche/animation.cpp
+++ b/engines/avalanche/animation.cpp
@@ -861,17 +861,9 @@ void Animation::callSpecial(uint16 which) {
}
void Animation::updateSpeed() {
- // Given that you've just changed the speed in triptype._speedX, this adjusts _moveX.
-
+ // Given that you've just changed the speed in _speedX, this adjusts _moveX.
_sprites[0]._moveX = (_sprites[0]._moveX / 3) * _sprites[0]._speedX;
-
- if (_sprites[0]._speedX == _vm->kRun) {
- _vm->_graphics->_surface.drawLine(336, 199, 338, 199, kColorLightblue);
- _vm->_graphics->_surface.drawLine(371, 199, 373, 199, kColorYellow);
- } else {
- _vm->_graphics->_surface.drawLine(371, 199, 373, 199, kColorLightblue);
- _vm->_graphics->_surface.drawLine(336, 199, 338, 199, kColorYellow);
- }
+ _vm->_graphics->drawSpeedBar(_sprites[0]._speedX);
}
void Animation::setMoveSpeed(byte t, Direction dir) {