when dragging, move crosshairs even over tile

Change so you still see dragging happening via crosshairs movement, but
the dragged tile itself doesn't move except over a place it can be
dropped.
This commit is contained in:
Eric House 2020-12-02 08:41:52 -08:00
parent db430d63db
commit 31eeb1de43

View file

@ -507,10 +507,9 @@ dragDropContinueImpl( BoardCtxt* board, XWEnv xwe, XP_U16 xx, XP_U16 yy,
XP_Bool isLegalBoardDrag = XP_FALSE;
if ( newInfo.obj == OBJ_BOARD
&& coordToCell( board, xx, yy, &newInfo.u.board.col,
&newInfo.u.board.row )
&& !cellOccupied( board, newInfo.u.board.col,
newInfo.u.board.row, XP_TRUE ) ) {
isLegalBoardDrag = XP_TRUE;
&newInfo.u.board.row ) ) {
isLegalBoardDrag = !cellOccupied( board, newInfo.u.board.col,
newInfo.u.board.row, XP_TRUE );
#ifdef XWFEATURE_CROSSHAIRS
if ( !board->hideCrosshairs ) {
draw = crosshairs_set( board, newInfo.u.board.col,