mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
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:
parent
db430d63db
commit
31eeb1de43
1 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue