diff options
| -rw-r--r-- | engines/avalanche/animation.cpp | 6 | ||||
| -rw-r--r-- | engines/avalanche/animation.h | 4 | ||||
| -rw-r--r-- | engines/avalanche/avalot.cpp | 6 | 
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();  | 
