Fixing gcc compiler warnings.

This commit is contained in:
lotodore committed 2012-09-20 22:14:17 +02:00
1 parent c752b17c9f
commit 895a174a08
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1671,7 +1671,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
isBigBlind = true;
} else { // no blind -> log
if (netActionDone.playeraction()) {
assert(netActionDone.totalplayerbet() >= tmpPlayer->getMySet());
assert((int)netActionDone.totalplayerbet() >= tmpPlayer->getMySet());
client->GetGui().logPlayerActionMsg(
tmpPlayer->getMyName(),
netActionDone.playeraction(),
@@ -1736,7 +1736,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0);
// Set round.
if (curGame->getCurrentHand()->getCurrentRound() != netPlayersTurn.gamestate()) {
if (curGame->getCurrentHand()->getCurrentRound() != static_cast<GameState>(netPlayersTurn.gamestate())) {
ResetPlayerActions(*curGame);
curGame->getCurrentHand()->setCurrentRound(static_cast<GameState>(netPlayersTurn.gamestate()));
client->GetClientLog()->setCurrentRound(static_cast<GameState>(netPlayersTurn.gamestate()));