mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
When tray's not revealed, cursor should travel over all tiles to be
consistent with display of 7 tiles even if some are really on board.
This commit is contained in:
parent
d695420b95
commit
bf8c079db4
1 changed files with 3 additions and 1 deletions
|
@ -581,7 +581,9 @@ tray_moveCursor( BoardCtxt* board, XP_Key cursorKey, XP_Bool preflightOnly,
|
|||
up = XP_TRUE;
|
||||
} else if ( !preflightOnly ) {
|
||||
XP_S16 tileLoc = trayCursorLoc;
|
||||
XP_U16 nTiles = model_getNumTilesInTray( board->model, selPlayer );
|
||||
XP_U16 nTiles = board->trayVisState == TRAY_REVEALED
|
||||
? model_getNumTilesInTray( board->model, selPlayer )
|
||||
: MAX_TRAY_TILES;
|
||||
XP_Bool cursorOnDivider = trayCursorLoc == pti->dividerLoc;
|
||||
XP_Bool cursorObjSelected;
|
||||
XP_S16 newTileLoc;
|
||||
|
|
Loading…
Reference in a new issue