Mercurial > hg > batmud > maputils
changeset 1871:a6990341df22
Match against rightmost edge of the map also.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Nov 2017 16:40:51 +0200 |
parents | e3108a01e841 |
children | b5b0aad73aa2 |
files | mapsearch.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Sat Nov 04 16:37:33 2017 +0200 +++ b/mapsearch.c Sat Nov 04 16:40:51 2017 +0200 @@ -883,8 +883,8 @@ { MAPInfoCtx *info = &optMaps[nmap]; - for (int oy = 0; oy < info->map->height - height - 1; oy++) - for (int ox = 0; ox < info->map->width - width - 1; ox++) + for (int oy = 0; oy < info->map->height - height; oy++) + for (int ox = 0; ox < info->map->width - width; ox++) { // Check for match double accuracy = mapMatchBlock(info->map, pattern, ox, oy, TRUE);