fix bug where arrow replaces tile at edge of board by returning false

from figureNextLoc unless an empty space found.
This commit is contained in:
ehouse 2007-04-03 03:36:14 +00:00
parent 704e60ef4c
commit ef4d986a45

View file

@ -2994,10 +2994,10 @@ figureNextLoc( BoardCtxt* board, XP_Key cursorKey,
#endif #endif
break; break;
} }
result = XP_TRUE;
*useWhat += incr; *useWhat += incr;
if ( forceFirst if ( forceFirst
|| !cellOccupied( board, *colP, *rowP, inclPending ) ) { || !cellOccupied( board, *colP, *rowP, inclPending ) ) {
result = XP_TRUE;
break; break;
} }
} }