flip arrow when board flipped

Fixing https://sourceforge.net/p/xwords/bugs/8/, flip the arrow before
placing it on top of the tile just returned to the tray.
This commit is contained in:
Eric House 2018-03-22 07:20:17 -07:00
parent 8f86cf9a77
commit a221ae43f4

View file

@ -3619,6 +3619,9 @@ replaceLastTile( BoardCtxt* board )
XP_Bool isVertical;
XP_Bool directionKnown =
model_getCurrentMoveIsVertical( board->model, turn, &isVertical );
if ( directionKnown && board->isFlipped ) {
isVertical = !isVertical;
}
index = -1;
model_getCurrentMoveTile( board->model, board->selPlayer, &index,