From ab0dd1d0650fce50beffd65ed3a082bdf73f5029 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 12 Aug 2007 19:09:06 +0000 Subject: [PATCH] Yet another try to fix network pot distribution. --- src/net/common/serverrecvstate.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/net/common/serverrecvstate.cpp b/src/net/common/serverrecvstate.cpp index 08993f21..e6cd077b 100644 --- a/src/net/common/serverrecvstate.cpp +++ b/src/net/common/serverrecvstate.cpp @@ -577,7 +577,7 @@ ServerRecvStateStartRound::Process(ServerRecvThread &server) // Main game loop. int curRound = curGame.getCurrentHand()->getActualRound(); curGame.getCurrentHand()->switchRounds(); - if (!curGame.getCurrentHand()->getAllInCondition()) + if (!curGame.getCurrentHand()->getAllInCondition() && curGame.getCurrentHand()->getActualRound() != GAME_STATE_POST_RIVER) curGame.getCurrentHand()->getCurrentBeRo()->run(); int newRound = curGame.getCurrentHand()->getActualRound(); @@ -652,6 +652,9 @@ ServerRecvStateStartRound::Process(ServerRecvThread &server) } 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. std::list > activePlayers = GetActivePlayers(curGame); // if (activePlayers.empty()) TODO throw exception