summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4b3d3b0)
This prevents crashing and moving pieces off of the board.
+ /* Do nothing for out-of-bounds clicks */
+ if (x < 0 || x >= LOA_BOARD_SIZE ||
+ y < 0 || y >= LOA_BOARD_SIZE)
+ {
+ return TRUE;
+ }
+
if (x == game->selected_x &&
y == game->selected_y)
{
if (x == game->selected_x &&
y == game->selected_y)
{