diff options
author | Strangerke | 2013-09-29 11:26:21 +0200 |
---|---|---|
committer | Strangerke | 2013-09-29 11:26:21 +0200 |
commit | 1af03774ccda57e153b3d3664613818645f5f4ff (patch) | |
tree | f1a230e5278a89a1c61cecac6943822035e4a860 /engines/avalanche/animation.cpp | |
parent | ef8b661c3d80a498f0bacf0b954764084c95262b (diff) | |
download | scummvm-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.cpp | 12 |
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) { |