From e6d841b6610b0198891e520512f00134af878c55 Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 29 Dec 2011 10:55:27 +0000 Subject: [PATCH] Fixing ticket #87: Only consider active players (with money) when showing the timeout warning. --- src/net/common/servergamestate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/net/common/servergamestate.cpp b/src/net/common/servergamestate.cpp index 190583fe..168c204f 100644 --- a/src/net/common/servergamestate.cpp +++ b/src/net/common/servergamestate.cpp @@ -1282,11 +1282,11 @@ ServerGameStateHand::CheckPlayerTimeouts(boost::shared_ptr server) // Check timeout. int actionTimeout = server->GetGameData().playerActionTimeoutSec; if (actionTimeout) { - // Consider all players, even inactive. - PlayerListIterator i = server->GetGame().getSeatsList()->begin(); - PlayerListIterator end = server->GetGame().getSeatsList()->end(); + // Consider all active players. + PlayerListIterator i = server->GetGame().getActivePlayerList()->begin(); + PlayerListIterator end = server->GetGame().getActivePlayerList()->end(); - // Check timeouts of all players. + // Check timeouts of players. while (i != end) { boost::shared_ptr tmpPlayer = *i; if (tmpPlayer->getMyType() == PLAYER_TYPE_HUMAN