浏览代码

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