aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/lucerna2.cpp
diff options
context:
space:
mode:
authorStrangerke2013-09-13 22:58:24 +0200
committerStrangerke2013-09-13 22:58:24 +0200
commitb083878dbefeb95c9bc9d4493839121565da6342 (patch)
tree29301ec10eeea8188b6ef5be069e62a1034460fa /engines/avalanche/lucerna2.cpp
parent82e76e7b5391ae87dc44d7986b2dfd40c53c3fc8 (diff)
downloadscummvm-rg350-b083878dbefeb95c9bc9d4493839121565da6342.tar.gz
scummvm-rg350-b083878dbefeb95c9bc9d4493839121565da6342.tar.bz2
scummvm-rg350-b083878dbefeb95c9bc9d4493839121565da6342.zip
AVALANCHE: Remove duplicated direction enum, move direction to animation class
Diffstat (limited to 'engines/avalanche/lucerna2.cpp')
-rw-r--r--engines/avalanche/lucerna2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 12b75523a4..9a7d048763 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -913,7 +913,7 @@ void Lucerna::drawToolbar() {
file.close();
CursorMan.showMouse(true);
- _vm->_gyro->_oldDirection = 177;
+ _vm->_animation->_oldDirection = 177;
drawDirection();
}
@@ -967,22 +967,22 @@ void Lucerna::useCompass(const Common::Point &cursorPos) {
switch (color) {
case kColorGreen:
- _vm->_gyro->_direction = Animation::kDirUp;
+ _vm->_animation->_direction = Animation::kDirUp;
_vm->_animation->changeDirection(0, Animation::kDirUp);
drawDirection();
break;
case kColorBrown:
- _vm->_gyro->_direction = Animation::kDirDown;
+ _vm->_animation->_direction = Animation::kDirDown;
_vm->_animation->changeDirection(0, Animation::kDirDown);
drawDirection();
break;
case kColorCyan:
- _vm->_gyro->_direction = Animation::kDirLeft;
+ _vm->_animation->_direction = Animation::kDirLeft;
_vm->_animation->changeDirection(0, Animation::kDirLeft);
drawDirection();
break;
case kColorLightmagenta:
- _vm->_gyro->_direction = Animation::kDirRight;
+ _vm->_animation->_direction = Animation::kDirRight;
_vm->_animation->changeDirection(0, Animation::kDirRight);
drawDirection();
break;
@@ -1167,13 +1167,13 @@ void Lucerna::dawn() {
}
void Lucerna::drawDirection() { // It's data is loaded in load_digits().
- if (_vm->_gyro->_oldDirection == _vm->_gyro->_direction)
+ if (_vm->_animation->_oldDirection == _vm->_animation->_direction)
return;
- _vm->_gyro->_oldDirection = _vm->_gyro->_direction;
+ _vm->_animation->_oldDirection = _vm->_animation->_direction;
CursorMan.showMouse(false);
- _vm->_graphics->drawPicture(_vm->_graphics->_surface, _vm->_gyro->_directions[_vm->_gyro->_direction], 0, 161);
+ _vm->_graphics->drawPicture(_vm->_graphics->_surface, _vm->_gyro->_directions[_vm->_animation->_direction], 0, 161);
CursorMan.showMouse(true);
}
@@ -1240,7 +1240,7 @@ void Lucerna::spriteRun() {
void Lucerna::fixFlashers() {
_vm->_gyro->_ledStatus = 177;
- _vm->_gyro->_oldDirection = 177;
+ _vm->_animation->_oldDirection = 177;
_vm->_scrolls->setReadyLight(2);
drawDirection();
}