Author: cazfi Date: Wed Sep 28 06:54:54 2016 New Revision: 33930 URL: http://svn.gna.org/viewcvs/freeciv?rev=33930&view=rev Log: Made mouse clicks to target correct tiles in hex topologies.
Reported by Jacob Nevins <jtn> See bug #24031 Modified: branches/S2_6/client/mapview_common.c Modified: branches/S2_6/client/mapview_common.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/mapview_common.c?rev=33930&r1=33929&r2=33930&view=diff ============================================================================== --- branches/S2_6/client/mapview_common.c (original) +++ branches/S2_6/client/mapview_common.c Wed Sep 28 06:54:54 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