diff options
author | Strangerke | 2013-09-13 22:58:24 +0200 |
---|---|---|
committer | Strangerke | 2013-09-13 22:58:24 +0200 |
commit | b083878dbefeb95c9bc9d4493839121565da6342 (patch) | |
tree | 29301ec10eeea8188b6ef5be069e62a1034460fa /engines/avalanche/gyro2.cpp | |
parent | 82e76e7b5391ae87dc44d7986b2dfd40c53c3fc8 (diff) | |
download | scummvm-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/gyro2.cpp')
-rw-r--r-- | engines/avalanche/gyro2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp index d9e0d74804..1b950739fd 100644 --- a/engines/avalanche/gyro2.cpp +++ b/engines/avalanche/gyro2.cpp @@ -227,7 +227,7 @@ void Gyro::drawShadowBox(int16 x1, int16 y1, int16 x2, int16 y2, Common::String void Gyro::resetVariables() { // Replaces memset(&_vm->_gyro->_dna, 0, sizeof(DnaType)); - _direction = 0; + _vm->_animation->_direction = 0; _carryNum = 0; for (int i = 0; i < kObjectNum; i++) _objects[i] = false; @@ -326,7 +326,7 @@ void Gyro::newGame() { _spareEvening = "answer a questionnaire"; _favouriteDrink = "beer"; _money = 30; // 2/6 - _direction = kDirectionStopped; + _vm->_animation->_direction = Animation::kDirStopped; _wearing = kObjectClothes; _objects[kObjectMoney - 1] = true; _objects[kObjectBodkin - 1] = true; @@ -339,7 +339,7 @@ void Gyro::newGame() { _onToolbar = false; _seeScroll = false; - _vm->_animation->_sprites[0].appear(300,117,kDirectionRight); // Needed to initialize Avalot. + _vm->_animation->_sprites[0].appear(300, 117, Animation::kDirRight); // Needed to initialize Avalot. //for (gd = 0; gd <= 30; gd++) for (gm = 0; gm <= 1; gm++) also[gd][gm] = nil; // fillchar(previous^,sizeof(previous^),#0); { blank out array } _him = 254; |