mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix bug: don't advance arrow if unable to move tile to board (introduced with recent tile index changes)
This commit is contained in:
parent
321dbb6471
commit
ca7c14128a
1 changed files with 3 additions and 4 deletions
|
@ -3173,14 +3173,13 @@ moveKeyTileToBoard( BoardCtxt* board, XP_Key cursorKey, XP_Bool* gotArrow )
|
|||
Tile blankFace = EMPTY_TILE;
|
||||
XP_S16 tileIndex = keyToIndex( board, cursorKey, &blankFace );
|
||||
|
||||
if ( tileIndex >= 0 ) {
|
||||
haveDest = moveTileToBoard( board, col, row, tileIndex, blankFace );
|
||||
}
|
||||
haveDest = (tileIndex >= 0)
|
||||
&& moveTileToBoard( board, col, row, tileIndex, blankFace );
|
||||
}
|
||||
|
||||
return haveDest;
|
||||
} /* moveKeyTileToBoard */
|
||||
#endif
|
||||
#endif /* #ifdef KEY_SUPPORT */
|
||||
|
||||
static void
|
||||
setArrowFor( BoardCtxt* board, XP_U16 player, XP_U16 col, XP_U16 row )
|
||||
|
|
Loading…
Reference in a new issue