diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-28 13:02:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-28 13:02:39 +0300 |
commit | 1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b (patch) | |
tree | 749fd5f6f95b49237dc3df8bf73d2462d156386c | |
parent | b3bed3c6c764cae9706be429ea0222cad38e2e43 (diff) | |
download | evol-hercules-1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b.tar.gz evol-hercules-1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b.tar.bz2 evol-hercules-1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b.tar.xz evol-hercules-1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b.zip |
Add map flag "mask".
New map flag: mask NUM
where NUM is new flag value.
-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)); |