Mercurial > hg > batmud > maputils
changeset 2200:37e2f104f3db
Ignore INVIS locations in the map itself as well.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Oct 2019 03:09:41 +0300 |
parents | 6125c1ab5755 |
children | bc8b7bb43f67 |
files | mkcitymap.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mkcitymap.c Sun Oct 13 03:02:46 2019 +0300 +++ b/mkcitymap.c Sun Oct 13 03:09:41 2019 +0300 @@ -267,7 +267,8 @@ const unsigned char *dp = map->data + (map->scansize * yc); for (int xc = 0; xc < map->width; xc++) { - if ((n = locFindByCoords(locs, xc, yc, TRUE)) >= 0) + if ((n = locFindByCoords(locs, xc, yc, TRUE)) >= 0 && + (locs->locations[n]->flags & LOCF_INVIS) == 0) { LocMarker *marker = locs->locations[n]; if (span) fprintf(outFile, "</span>");