Browse Source

fixed code smell on line 194. removed ternary.

wes 4 years ago
parent
commit
a47beaa67d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Qwixx/game.cpp

+ 1 - 1
Qwixx/game.cpp

@@ -191,7 +191,7 @@ bool Game::isMoveRepresentedInDie(int player, CollectionOfMoves collectionOfMove
     if(player != activePlayer) 
     {
         // if the move equals the sum of the two white die return true, if not return false
-        return (collectionOfMoves.white.index == (dice.dice[white1] + dice.dice[white2])) ?  true : false;
+        return collectionOfMoves.white.index == dice.dice[white1] + dice.dice[white2];
     }
     // otherwise this is the active player
     else