Skip to content

Commit

Permalink
ACCESS: Remove a useless check, comment out some code related to orig…
Browse files Browse the repository at this point in the history
…inal debugging
  • Loading branch information
Strangerke authored and dreammaster committed Dec 13, 2014
1 parent 2805dca commit 7a17809
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions engines/access/player.cpp
Expand Up @@ -259,9 +259,10 @@ void Player::walkUp() {
_rawPlayerLow.y = _rawYTempL;

calcManScale();
if (_vm->_currentMan != 3 && (_frame == 17 || _frame == 21)) {
warning("TODO: walkUp - si = 0?");
}

// This code looks totally useless as 'si' is unconditionally set in plotCom
//if (_vm->_currentMan != 3 && (_frame == 17 || _frame == 21))
// warning("TODO: walkUp - si = 0?");

if (++_frame > _upWalkMax)
_frame = _upWalkMin;
Expand All @@ -288,9 +289,10 @@ void Player::walkDown() {
_rawPlayerLow.y = _rawYTempL;

calcManScale();
if (_vm->_currentMan != 3 && (_frame == 10 || _frame == 14)) {
warning("TODO: walkDown - si = 0?");
}

// This code looks totally useless as 'si' is unconditionally set in plotCom
//if (_vm->_currentMan != 3 && (_frame == 10 || _frame == 14))
// warning("TODO: walkDown - si = 0?");

if (++_frame > _downWalkMax)
_frame = _downWalkMin;
Expand Down Expand Up @@ -329,9 +331,9 @@ void Player::walkLeft() {
_rawPlayerLow.x = _rawTempL;
++_frame;

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkLeft - si = 0?");
}
// This code looks totally useless as 'si' is unconditionally set in plotCom1
//if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5))
// warning("TODO: walkLeft - si = 0?");

if (_frame > _sideWalkMax)
_frame = _sideWalkMin;
Expand Down Expand Up @@ -370,10 +372,7 @@ void Player::walkRight() {
_rawPlayerLow.x = _rawTempL;
++_frame;

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkRight - si = 0?");
}

// Useless check removed
if (_frame > _sideWalkMax)
_frame = _sideWalkMin;

Expand Down Expand Up @@ -421,9 +420,9 @@ void Player::walkUpLeft() {
++_frame;
calcManScale();

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkUpLeft - si = 0?");
}
// This code looks totally useless as 'si' is unconditionally set in plotCom1
//if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5))
// warning("TODO: walkUpLeft - si = 0?");

if (_frame > _diagUpWalkMax)
_frame = _diagUpWalkMin;
Expand Down Expand Up @@ -472,9 +471,9 @@ void Player::walkDownLeft() {
++_frame;
calcManScale();

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkDownLeft - si = 0?");
}
// This code looks totally useless as 'si' is unconditionally set in plotCom1
//if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5))
// warning("TODO: walkDownLeft - si = 0?");

if (_frame > _diagDownWalkMax)
_frame = _diagDownWalkMin;
Expand Down Expand Up @@ -523,9 +522,9 @@ void Player::walkUpRight() {
++_frame;
calcManScale();

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkUpRight - si = 0?");
}
// This code looks totally useless as 'si' is unconditionally set in plotCom
//if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5))
// warning("TODO: walkUpRight - si = 0?");

if (_frame > _diagUpWalkMax)
_frame = _diagUpWalkMin;
Expand Down Expand Up @@ -575,9 +574,9 @@ void Player::walkDownRight() {
++_frame;
calcManScale();

if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5)) {
warning("TODO: walkDownRight - si = 0?");
}
// This code looks totally useless as 'si' is unconditionally set in plotCom1
//if (_vm->_currentMan != 3 && (_frame == 1 || _frame == 5))
// warning("TODO: walkDownRight - si = 0?");

if (_frame > _diagDownWalkMax)
_frame = _diagDownWalkMin;
Expand Down

0 comments on commit 7a17809

Please sign in to comment.