Fix bug #8805 (incorrect highlighted hex on big map at some zoom level)
This commit is contained in:
parent
f66c929313
commit
24d1e0e269
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue