mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
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:
parent
09b5c44fb4
commit
d98a3fe232
1 changed files with 2 additions and 1 deletions
|
@ -826,7 +826,8 @@ selectPlayerImpl( BoardCtxt* board, XP_U16 newPlayer, XP_Bool reveal,
|
||||||
if ( reveal ) {
|
if ( reveal ) {
|
||||||
checkRevealTray( board );
|
checkRevealTray( board );
|
||||||
}
|
}
|
||||||
} else if ( canPeek || newPlayer == curTurn ) {
|
} else if ( canPeek || ((newPlayer == curTurn)
|
||||||
|
&& LP_IS_LOCAL( &board->gi->players[newPlayer]))) {
|
||||||
PerTurnInfo* newInfo = &board->pti[newPlayer];
|
PerTurnInfo* newInfo = &board->pti[newPlayer];
|
||||||
XP_U16 oldPlayer = board->selPlayer;
|
XP_U16 oldPlayer = board->selPlayer;
|
||||||
model_foreachPendingCell( board->model, newPlayer,
|
model_foreachPendingCell( board->model, newPlayer,
|
||||||
|
|
Loading…
Reference in a new issue