Fix bug #8805 (incorrect highlighted hex on big map at some zoom level)

This commit is contained in:
Ali El Gariani 2007-03-28 09:00:11 +00:00
parent f66c929313
commit 24d1e0e269

View file

@ -278,7 +278,7 @@ gamemap::location display::hex_clicked_on(int xclick, int yclick, gamemap::locat
gamemap::location display::pixel_position_to_hex(int x, int y, gamemap::location::DIRECTION* nearest_hex, gamemap::location::DIRECTION* second_nearest_hex)
{
const int s = hex_size();
const int tesselation_x_size = s * 3 / 2;
const int tesselation_x_size = hex_width() * 2;
const int tesselation_y_size = s;
const int x_base = x / tesselation_x_size * 2;
const int x_mod = x % tesselation_x_size;