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
break;
}
result = XP_TRUE;
*useWhat += incr;
if ( forceFirst
|| !cellOccupied( board, *colP, *rowP, inclPending ) ) {
result = XP_TRUE;
break;
}
}