Mercurial > hg > batmud > maputils
changeset 1906:6d14a966e645
Do not match locations with LOCF_INVIS flag.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Nov 2017 12:22:19 +0200 |
parents | 9e659d0f995f |
children | 20f0acd6f962 |
files | mapsearch.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Mon Nov 06 12:22:02 2017 +0200 +++ b/mapsearch.c Mon Nov 06 12:22:19 2017 +0200 @@ -1129,7 +1129,8 @@ { LocMarker *marker = info->loc.locations[nloc]; for (int nname = 0; nname < marker->nnames; nname++) - if (th_strcasematch(marker->names[nname].name, pattern)) + if ((marker->flags & LOCF_INVIS) == 0 && + th_strcasematch(marker->names[nname].name, pattern)) { // Okay, add the match to our list MAPMatch *match = &matches[nmatches++];