diff options
-rw-r--r-- | engines/saga/actor.cpp | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp index 1ba881f565..f108820136 100644 --- a/engines/saga/actor.cpp +++ b/engines/saga/actor.cpp @@ -1082,85 +1082,6 @@ ActorFrameRange *Actor::getActorFrameRange(uint16 actorId, int frameType) { return &actor->_frames[frameType].directions[fourDirection]; } return NULL; - /* - } else { - if (0 == actor->_framesCount) { - return &def; - } - - //TEST - if (actor->_id == 0x2000) { - if (actor->_framesCount <= _currentFrameIndex) { - _currentFrameIndex = 0; - } - fr = actor->_frames[_currentFrameIndex].directions; - return fr; - } - //TEST - if (frameType >= actor->_framesCount) { - frameType = actor->_framesCount - 1; - } - if (frameType < 0) { - frameType = 0; - } - - if (frameType == kFrameIHNMWalk ) { - switch (actor->_facingDirection) { - case kDirUpRight: - if (frameType > 0) - fr = &actor->_frames[frameType - 1].directions[ACTOR_DIRECTION_RIGHT]; - else - fr = &def; - if (!fr->frameCount) - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_RIGHT]; - break; - case kDirDownRight: - if (frameType > 0) - fr = &actor->_frames[frameType - 1].directions[ACTOR_DIRECTION_FORWARD]; - else - fr = &def; - if (!fr->frameCount) - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_RIGHT]; - break; - case kDirUpLeft: - if (frameType > 0) - fr = &actor->_frames[frameType - 1].directions[ACTOR_DIRECTION_LEFT]; - else - fr = &def; - if (!fr->frameCount) - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_LEFT]; - break; - case kDirDownLeft: - if (frameType > 0) - fr = &actor->_frames[frameType - 1].directions[ACTOR_DIRECTION_BACK]; - else - fr = &def; - if (!fr->frameCount) - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_LEFT]; - break; - case kDirRight: - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_RIGHT]; - break; - case kDirLeft: - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_LEFT]; - break; - case kDirUp: - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_BACK]; - break; - case kDirDown: - fr = &actor->_frames[frameType].directions[ACTOR_DIRECTION_FORWARD]; - break; - } - return fr; - } - else { - if (frameType >= actor->_framesCount) { - error("Actor::getActorFrameRange Wrong frameType 0x%X (%d) actorId 0x%X", frameType, actor->_framesCount, actorId); - } - fourDirection = actorDirectectionsLUT[actor->_facingDirection]; - return &actor->_frames[frameType].directions[fourDirection]; - } - }*/ } void Actor::handleSpeech(int msec) { |