when peeking is disabled (the default on android), don't allow

swapping to view of the current player's board if the current player
is remote -- because then won't be able to swap back to own view until
it's your turn.  Fixes annoyance in multi-device game on Android.
This commit is contained in:
Andy2 2011-01-21 21:32:52 -08:00
parent 09b5c44fb4
commit d98a3fe232

View file

@ -826,7 +826,8 @@ selectPlayerImpl( BoardCtxt* board, XP_U16 newPlayer, XP_Bool reveal,
if ( reveal ) {
checkRevealTray( board );
}
} else if ( canPeek || newPlayer == curTurn ) {
} else if ( canPeek || ((newPlayer == curTurn)
&& LP_IS_LOCAL( &board->gi->players[newPlayer]))) {
PerTurnInfo* newInfo = &board->pti[newPlayer];
XP_U16 oldPlayer = board->selPlayer;
model_foreachPendingCell( board->model, newPlayer,