diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/npc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 6252881..ee0ff47 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -60,6 +60,13 @@ void enpc_parse_unknown_mapflag(const char *name, char *w3, char *w4, const char if (data) data->invisible = true; } + if (!strcmpi(w3, "mask")) + { + int16 m = map->mapname2mapid(name); + struct MapdExt *data = mapd_get(m); + if (data) + data->mask = atoi(w4); + } else { ShowError("npc_parse_mapflag: unrecognized mapflag '%s' in file '%s', line '%d'.\n", w3, filepath, strline(buffer,start-buffer)); |