Don't hide tray if there's only one player.

This commit is contained in:
ehouse 2008-02-16 15:53:00 +00:00
parent c3555440fd
commit 005694b0b1

View file

@ -597,7 +597,9 @@ board_commitTurn( BoardCtxt* board )
/* Hide the tray so no peeking. Leave it hidden even if user /* Hide the tray so no peeking. Leave it hidden even if user
cancels as otherwise another player could get around cancels as otherwise another player could get around
passwords and peek at tiles. */ passwords and peek at tiles. */
if ( gi_countLocalHumans( board->gi ) > 1 ) {
result = board_hideTray( board ); result = board_hideTray( board );
}
if ( util_userQuery( board->util, QUERY_COMMIT_TURN, if ( util_userQuery( board->util, QUERY_COMMIT_TURN,
stream ) ) { stream ) ) {