Mercurial > hg > batmud > maputils
changeset 1928:7c51fac00c79
Fix centering via 'X'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Nov 2017 17:54:30 +0200 |
parents | 2669add486a7 |
children | c85d700ca146 |
files | mapsearch.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Thu Nov 09 11:34:31 2017 +0200 +++ b/mapsearch.c Thu Nov 09 17:54:30 2017 +0200 @@ -1043,7 +1043,9 @@ } // Find pattern center marker, if any - centerFound = mapBlockFindCenter(pattern, (unsigned char*) "*@X", 2, ¢erX, ¢erY, 20); + centerFound = mapBlockFindCenter(pattern, + (unsigned char*) "*@X", 3, + ¢erX, ¢erY, 10); if (centerFound) mapMSG(2, "Center at %d, %d\n", centerX, centerY);