Skip to content
Permalink
Browse files

ACCESS: Remove an unused variable in Animation manager

  • Loading branch information
Strangerke committed Dec 22, 2014
1 parent 04bc635 commit fc9595efdc22aecb77800dca29fbe23291855c48
Showing with 1 addition and 5 deletions.
  1. +1 −4 engines/access/animation.cpp
  2. +0 −1 engines/access/animation.h
@@ -63,7 +63,6 @@ Animation::Animation(AccessEngine *vm, Common::SeekableReadStream *stream) : Man
_countdownTicks = stream->readUint16LE();
_currentLoopCount = stream->readSint16LE();
stream->readUint16LE(); // unk
_field10 = 0;

Common::Array<uint16> frameOffsets;
uint16 ofs;
@@ -311,9 +310,7 @@ Animation *AnimationManager::setAnimation(int animId) {
anim->_countdownTicks = anim->_initialTicks;
anim->_frameNumber = 0;

anim->_currentLoopCount = (anim->_type != 3 && anim->_type != 4) ? 0 :
anim->_loopCount;
anim->_field10 = 0;
anim->_currentLoopCount = (anim->_type != 3 && anim->_type != 4) ? 0 : anim->_loopCount;

return anim;
}
@@ -106,7 +106,6 @@ class Animation : public Manager {
int _loopCount;
int _countdownTicks;
int _currentLoopCount;
int _field10;
public:
Animation(AccessEngine *vm, Common::SeekableReadStream *stream);
~Animation();

0 comments on commit fc9595e

Please sign in to comment.
You can’t perform that action at this time.