From 31eeb1de43aac0d6dcdae89c68118b853b6ffa64 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 2 Dec 2020 08:41:52 -0800 Subject: [PATCH] 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. --- xwords4/common/dragdrpp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xwords4/common/dragdrpp.c b/xwords4/common/dragdrpp.c index 89cf2c9af..895b33ac6 100644 --- a/xwords4/common/dragdrpp.c +++ b/xwords4/common/dragdrpp.c @@ -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,