summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-28 13:02:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-28 13:02:39 +0300
commit1ea90a6de5d0dc506b4be96ded4fe50e27df7e2b (patch)
tree749fd5f6f95b49237dc3df8bf73d2462d156386c /src
parentb3bed3c6c764cae9706be429ea0222cad38e2e43 (diff)
downloadevol-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.
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c7
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));