Author: cazfi Date: Wed Sep 28 06:54:47 2016 New Revision: 33929 URL: http://svn.gna.org/viewcvs/freeciv?rev=33929&view=rev Log: Made mouse clicks to target correct tiles in hex topologies.
Reported by Jacob Nevins <jtn> See bug #24031 Modified: trunk/client/mapview_common.c Modified: trunk/client/mapview_common.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/mapview_common.c?rev=33929&r1=33928&r2=33929&view=diff ============================================================================== --- trunk/client/mapview_common.c (original) +++ trunk/client/mapview_common.c Wed Sep 28 06:54:47 2016 @@ -250,8 +250,8 @@ fc_assert(tileset_is_isometric(t)); - x = gui_x / W; - y = gui_y / H; + x = DIVIDE((int)gui_x, (int)W); + y = DIVIDE((int)gui_y, (int)H); dx = gui_x - x * W; dy = gui_y - y * H; fc_assert(dx >= 0 && dx < W); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits