Yet another try to fix network pot distribution.

This commit is contained in:
lotodore
2007-08-12 19:09:06 +00:00
parent 42cf7cb735
commit ab0dd1d065
+4 -1
View File
@@ -577,7 +577,7 @@ ServerRecvStateStartRound::Process(ServerRecvThread &server)
// Main game loop. // Main game loop.
int curRound = curGame.getCurrentHand()->getActualRound(); int curRound = curGame.getCurrentHand()->getActualRound();
curGame.getCurrentHand()->switchRounds(); curGame.getCurrentHand()->switchRounds();
if (!curGame.getCurrentHand()->getAllInCondition()) if (!curGame.getCurrentHand()->getAllInCondition() && curGame.getCurrentHand()->getActualRound() != GAME_STATE_POST_RIVER)
curGame.getCurrentHand()->getCurrentBeRo()->run(); curGame.getCurrentHand()->getCurrentBeRo()->run();
int newRound = curGame.getCurrentHand()->getActualRound(); int newRound = curGame.getCurrentHand()->getActualRound();
@@ -652,6 +652,9 @@ ServerRecvStateStartRound::Process(ServerRecvThread &server)
} }
else // hand is over else // hand is over
{ {
// Engine will find out who won.
curGame.getCurrentHand()->getCurrentBeRo()->run();
// Retrieve active players. If only one player is left, no cards are shown. // Retrieve active players. If only one player is left, no cards are shown.
std::list<boost::shared_ptr<PlayerInterface> > activePlayers = GetActivePlayers(curGame); std::list<boost::shared_ptr<PlayerInterface> > activePlayers = GetActivePlayers(curGame);
// if (activePlayers.empty()) TODO throw exception // if (activePlayers.empty()) TODO throw exception