aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalanche.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/avalanche.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/avalanche.cpp')
-rw-r--r--engines/avalanche/avalanche.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp
index 611a8ef3a8..a5acf0988e 100644
--- a/engines/avalanche/avalanche.cpp
+++ b/engines/avalanche/avalanche.cpp
@@ -123,7 +123,7 @@ const char *AvalancheEngine::getCopyrightString() const {
void AvalancheEngine::synchronize(Common::Serializer &sz) {
//blockwrite(f, dna, sizeof(dna));
- sz.syncAsByte(_gyro->_direction);
+ sz.syncAsByte(_animation->_direction);
sz.syncAsByte(_gyro->_carryNum);
for (byte i = 0; i < kObjectNum; i++)
sz.syncAsByte(_gyro->_objects[i]);
@@ -459,7 +459,7 @@ bool AvalancheEngine::loadGame(const int16 slot) {
_scrolls->displayText(tmpStr);
if (_animation->_sprites[0]._quick && _animation->_sprites[0]._visible)
- _animation->changeDirection(0, _gyro->_direction); // We push Avvy in the right direction is he was moving.
+ _animation->changeDirection(0, _animation->_direction); // We push Avvy in the right direction is he was moving.
return true;
}
@@ -487,6 +487,7 @@ Common::String AvalancheEngine::expandDate(int d, int m, int y) {
day += "th";
}
+ // Y2K compliant ;)
return day + ' ' + month + ' ' + _gyro->intToStr(y + 1900);
}