소스 검색

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 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