aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-09-24 18:25:53 +0200
committeruruk2013-09-24 18:25:53 +0200
commit3ae30372bcf3bff39f8d4fd0df65536bc589ae8f (patch)
treeb4a8f4785f3e9106f8eae39e81e1a9b5c752ec02 /engines/avalanche
parent0b7de38dc1969fa2cee4337d0071b97071cceaae (diff)
downloadscummvm-rg350-3ae30372bcf3bff39f8d4fd0df65536bc589ae8f.tar.gz
scummvm-rg350-3ae30372bcf3bff39f8d4fd0df65536bc589ae8f.tar.bz2
scummvm-rg350-3ae30372bcf3bff39f8d4fd0df65536bc589ae8f.zip
AVALANCHE: Repair bug regarding uninitialized direction in Avalot. Some renaming in Animation.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/animation.cpp6
-rw-r--r--engines/avalanche/animation.h4
-rw-r--r--engines/avalanche/avalot.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp
index 92ebb4bac4..5fd109ad5c 100644
--- a/engines/avalanche/animation.cpp
+++ b/engines/avalanche/animation.cpp
@@ -123,7 +123,7 @@ void AnimationType::init(byte spritenum, bool doCheck, Animation *anim) {
inf.close();
}
-void AnimationType::original() {
+void AnimationType::reset() {
_quick = false;
_id = 177;
}
@@ -362,9 +362,9 @@ Animation::~Animation() {
}
}
-void Animation::loadAnims() {
+void Animation::resetAnims() {
for (int16 i = 0; i < kSpriteNumbMax; i++)
- _sprites[i].original();
+ _sprites[i].reset();
}
byte Animation::checkFeet(int16 x1, int16 x2, int16 oy, int16 y, byte yl) {
diff --git a/engines/avalanche/animation.h b/engines/avalanche/animation.h
index 47109811b9..47fab38d4c 100644
--- a/engines/avalanche/animation.h
+++ b/engines/avalanche/animation.h
@@ -74,7 +74,7 @@ public:
byte _eachStepProc;
void init(byte spritenum, bool doCheck, Animation *anim); // Loads & sets up the sprite.
- void original(); // Just sets 'quick' to false.
+ void reset(); // Just sets 'quick' to false. Original name: original().
void draw(); // Drops sprite onto screen. Original: andexor().
void turn(Direction whichway); // Turns character round.
void appear(int16 wx, int16 wy, Direction wf); // Switches it on.
@@ -119,7 +119,7 @@ public:
~Animation();
void animLink();
- void loadAnims(); // Original: loadtrip().
+ void resetAnims(); // Original: loadtrip().
void callSpecial(uint16 which);
void catacombMove(byte ped); // When you enter a new position in the catacombs, this procedure should be called. It changes the 'also' codes so that they may match the picture on the screen.
void stopWalking();
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 747604d254..9abdd9c13c 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -361,12 +361,12 @@ void Avalot::setup() {
_vm->_parser->_inputTextPos = 0;
_vm->_parser->_quote = true;
+ _vm->_animation->setDirection(kDirStopped);
+ _vm->_animation->resetAnims();
+
drawToolbar();
_vm->_dialogs->setReadyLight(2);
- _vm->_animation->setDirection(kDirStopped);
- _vm->_animation->loadAnims();
-
dawn();
_vm->_parser->_cursorState = false;
_vm->_parser->cursorOn();