Fixing ticket #87: Only consider active players (with money) when showing the timeout warning.
This commit is contained in:
@@ -1282,11 +1282,11 @@ ServerGameStateHand::CheckPlayerTimeouts(boost::shared_ptr<ServerGame> server)
|
|||||||
// Check timeout.
|
// Check timeout.
|
||||||
int actionTimeout = server->GetGameData().playerActionTimeoutSec;
|
int actionTimeout = server->GetGameData().playerActionTimeoutSec;
|
||||||
if (actionTimeout) {
|
if (actionTimeout) {
|
||||||
// Consider all players, even inactive.
|
// Consider all active players.
|
||||||
PlayerListIterator i = server->GetGame().getSeatsList()->begin();
|
PlayerListIterator i = server->GetGame().getActivePlayerList()->begin();
|
||||||
PlayerListIterator end = server->GetGame().getSeatsList()->end();
|
PlayerListIterator end = server->GetGame().getActivePlayerList()->end();
|
||||||
|
|
||||||
// Check timeouts of all players.
|
// Check timeouts of players.
|
||||||
while (i != end) {
|
while (i != end) {
|
||||||
boost::shared_ptr<PlayerInterface> tmpPlayer = *i;
|
boost::shared_ptr<PlayerInterface> tmpPlayer = *i;
|
||||||
if (tmpPlayer->getMyType() == PLAYER_TYPE_HUMAN
|
if (tmpPlayer->getMyType() == PLAYER_TYPE_HUMAN
|
||||||
|
|||||||
Reference in New Issue
Block a user