From b083878dbefeb95c9bc9d4493839121565da6342 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 13 Sep 2013 22:58:24 +0200 Subject: AVALANCHE: Remove duplicated direction enum, move direction to animation class --- engines/avalanche/avalanche.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/avalanche/avalanche.cpp') 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); } -- cgit v1.2.3