diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2015-12-10 16:07:08 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-25 16:09:36 +0100 |
commit | f426844acb3955ba3436d7c0870053c655d70fd1 (patch) | |
tree | 87f80bb4384b7356bdeec01d36553266201c7b7d /src/map/npc.c | |
parent | d9a19c93322de3a7a022b01049b5ce76c9e87b0b (diff) | |
download | hercules-f426844acb3955ba3436d7c0870053c655d70fd1.tar.gz hercules-f426844acb3955ba3436d7c0870053c655d70fd1.tar.bz2 hercules-f426844acb3955ba3436d7c0870053c655d70fd1.tar.xz hercules-f426844acb3955ba3436d7c0870053c655d70fd1.zip |
Implemented NoViewID
(http://herc.ws/board/topic/10020-official-mapflag-to-disable-viewid/)
Closes #926 as merged
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 9af6de518..09e5c0f46 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -4292,6 +4292,8 @@ const char *npc_parse_mapflag(const char *w1, const char *w2, const char *w3, co map->list[m].flag.src4instance = (state) ? 1 : 0; } else if ( !strcmpi(w3,"nocashshop") ) { map->list[m].flag.nocashshop = (state) ? 1 : 0; + } else if (!strcmpi(w3,"noviewid")) { + map->list[m].flag.noviewid = (state) ? atoi(w4) : 0; } else { npc->parse_unknown_mapflag(mapname, w3, w4, start, buffer, filepath, retval); } |