changeset 1824:42cf6bb20f1f

Fix map-local coordinates in search results.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 30 Oct 2017 15:06:36 +0200
parents 599ef33b918d
children 3e0923640d48
files mapsearch.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mapsearch.c	Mon Oct 30 15:06:20 2017 +0200
+++ b/mapsearch.c	Mon Oct 30 15:06:36 2017 +0200
@@ -767,8 +767,8 @@
                 MAPMatch *match = &matches[nmatches++];
 
                 match->map = info->locFile.continent;
-                match->mx = ox + centerX;
-                match->my = oy + centerY;
+                match->mx = ox + centerX + 1;
+                match->my = oy + centerY + 1;
                 match->wx = optWorldXC + info->locFile.x + ox + centerX;
                 match->wy = optWorldYC + info->locFile.y + oy + centerY;
                 match->accuracy = accuracy;