summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5106190)
me testing the wrong variables for clicks on the tile border...
[originally from svn r4197]
ty = y / TILE_SIZE;
if (tx >= state->width || ty >= state->height)
return NULL;
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)