Преглед изворни кода

fixed code smell on line 194. removed ternary.

wes пре 4 година
родитељ
комит
a47beaa67d
1 измењених фајлова са 1 додато и 1 уклоњено
  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(player != activePlayer) 
     {
     {
         // if the move equals the sum of the two white die return true, if not return false
         // 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
     // otherwise this is the active player
     else
     else