aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/animation.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp
index 70f007ae4d..18164c7673 100644
--- a/engines/avalanche/animation.cpp
+++ b/engines/avalanche/animation.cpp
@@ -933,15 +933,13 @@ void Animation::updateSpeed() {
_sprites[0]._moveX = (_sprites[0]._moveX / 3) * _sprites[0]._speedX;
- if (_sprites[0]._speedX == _vm->_avalot->kRun)
- _vm->_graphics->_surface.drawLine(371, 199, 373, 199, kColorYellow);
- else
- _vm->_graphics->_surface.drawLine(336, 199, 338, 199, kColorYellow);
-
- if (_sprites[0]._speedX == _vm->_avalot->kRun)
+ if (_sprites[0]._speedX == _vm->_avalot->kRun) {
_vm->_graphics->_surface.drawLine(336, 199, 338, 199, kColorLightblue);
- else
+ _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);
+ }
}
void Animation::changeDirection(byte t, byte dir) {