Skip to content

Commit

Permalink
TSAGE: R2R - Fix a bug in handlePlayer1, some renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Oct 1, 2014
1 parent 3bba852 commit fe6fae4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions engines/tsage/ringworld2/ringworld2_scenes1.cpp
Expand Up @@ -5938,10 +5938,10 @@ void Scene1337::handlePlayer1() {
}

int card13Id = findCard13InHand(1);
int tmpVal2 = getPlayerWithOutpost(1);
int victimId = getPlayerWithOutpost(1);

if ((card13Id != -1) && (tmpVal2 != -1)) {
playCounterTrickCard(&_gameBoardSide[1]._handCard[card13Id], tmpVal2);
if ((card13Id != -1) && (victimId != -1)) {
playCounterTrickCard(&_gameBoardSide[1]._handCard[card13Id], victimId);
return;
}

Expand All @@ -5954,7 +5954,7 @@ void Scene1337::handlePlayer1() {
if ( (_gameBoardSide[rndVal]._handCard[0]._cardId != 0)
|| (_gameBoardSide[rndVal]._handCard[1]._cardId != 0)
|| (_gameBoardSide[rndVal]._handCard[2]._cardId != 0)
|| (_gameBoardSide[rndVal]._handCard[3]._cardId == 0)) {
|| (_gameBoardSide[rndVal]._handCard[3]._cardId != 0)) {
playerIdFound = rndVal;
break;
}
Expand Down Expand Up @@ -6052,7 +6052,6 @@ void Scene1337::handlePlayer3() {
}

int randIndx = R2_GLOBALS._randomSource.getRandomNumber(3);

if (_gameBoardSide[3]._handCard[randIndx]._cardId == 1) {
for (int i = 0; i <= 7; i++) {
if ((_gameBoardSide[3]._outpostStation[i]._cardId == 0) && !isStopConstructionCard(_gameBoardSide[3]._delayCard._cardId)) {
Expand Down

0 comments on commit fe6fae4

Please sign in to comment.