aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index b3b0a39..0774de3 100644
--- a/net.c
+++ b/net.c
@@ -751,8 +751,8 @@ game_state *make_move(game_state *state, int x, int y, int button)
ty = y / TILE_SIZE;
if (tx >= state->width || ty >= state->height)
return NULL;
- if (tx % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
- ty % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
+ if (x % TILE_SIZE >= TILE_SIZE - TILE_BORDER ||
+ y % TILE_SIZE >= TILE_SIZE - TILE_BORDER)
return NULL;
/*