summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-12-10 16:07:08 +0530
committerHaru <haru@dotalux.com>2015-12-25 16:09:36 +0100
commitf426844acb3955ba3436d7c0870053c655d70fd1 (patch)
tree87f80bb4384b7356bdeec01d36553266201c7b7d /src/map/map.h
parentd9a19c93322de3a7a022b01049b5ce76c9e87b0b (diff)
downloadhercules-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/map.h')
-rw-r--r--src/map/map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 84af04f77..86a05e11b 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -243,6 +243,8 @@ enum {
#define map_flag_gvg2(m) (map->list[m].flag.gvg || map->list[m].flag.gvg_castle)
// No Kill Steal Protection
#define map_flag_ks(m) (map->list[m].flag.town || map->list[m].flag.pvp || map->list[m].flag.gvg || map->list[m].flag.battleground)
+// No ViewID
+#define map_no_view(m, view) (map->list[m].flag.noviewid & (view))
//This stackable implementation does not means a BL can be more than one type at a time, but it's
// meant to make it easier to check for multiple types at a time on invocations such as map_foreach* calls [Skotlex]
@@ -732,6 +734,7 @@ struct map_data {
unsigned noknockback : 1;
unsigned notomb : 1;
unsigned nocashshop : 1;
+ unsigned noviewid : 22;
} flag;
struct point save;
struct npc_data *npc[MAX_NPC_PER_MAP];