From f426844acb3955ba3436d7c0870053c655d70fd1 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 10 Dec 2015 16:07:08 +0530 Subject: Implemented NoViewID (http://herc.ws/board/topic/10020-official-mapflag-to-disable-viewid/) Closes #926 as merged Signed-off-by: Haru --- src/map/npc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/npc.c') 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); } -- cgit v1.2.3-70-g09d2