mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
pull tiles from right side of tray first
This commit is contained in:
parent
6cb0f359ad
commit
a987d91cab
1 changed files with 2 additions and 1 deletions
|
@ -761,7 +761,8 @@ model_trayContains( ModelCtxt* model, XP_S16 turn, Tile tile )
|
|||
|
||||
player = &model->players[turn];
|
||||
|
||||
for ( i = 0; i < player->trayTiles.nTiles; ++i ) {
|
||||
/* search from top down so don't pull out of below divider */
|
||||
for ( i = player->trayTiles.nTiles - 1; i >= 0 ; --i ) {
|
||||
Tile playerTile = player->trayTiles.tiles[i];
|
||||
if ( playerTile == tile ) {
|
||||
result = i;
|
||||
|
|
Loading…
Reference in a new issue