Fixing ticket #87: Only consider active players (with money) when showing the timeout warning.

This commit is contained in:
lotodore
2011-12-29 10:55:27 +00:00
parent 134b5b40b3
commit e6d841b661
+4 -4
View File
@@ -1282,11 +1282,11 @@ ServerGameStateHand::CheckPlayerTimeouts(boost::shared_ptr<ServerGame> 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<PlayerInterface> tmpPlayer = *i;
if (tmpPlayer->getMyType() == PLAYER_TYPE_HUMAN