mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
invalidate all tiles after committing a turn in order to force redraw
of the Pts. display in case where fewer than seven tiles remain and the board isn't being switched.
This commit is contained in:
parent
f353a70c89
commit
f0c3c11dc8
1 changed files with 6 additions and 4 deletions
|
@ -1048,10 +1048,12 @@ board_commitTurn( BoardCtxt* board )
|
|||
|| util_userQuery( board->util, QUERY_COMMIT_TURN,
|
||||
stream ) ) {
|
||||
result = server_commitMove( board->server ) || result;
|
||||
/* invalidate any selected tiles in case we'll be drawing
|
||||
this tray again rather than some other -- as is the
|
||||
case in a two-player game where one's a robot. */
|
||||
board_invalTrayTiles( board, pti->traySelBits );
|
||||
/* invalidate all tiles in case we'll be drawing this tray
|
||||
again rather than some other -- as is the case in a
|
||||
two-player game where one's a robot. We really only
|
||||
need the selected tiles and the rightmost (in case it's
|
||||
showing points-this-turn), but this is easier. */
|
||||
board_invalTrayTiles( board, ALLTILES );
|
||||
pti->traySelBits = 0x00;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue