summaryrefslogtreecommitdiff
path: root/src/map/script.c
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/script.c
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/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 829555820..24ccf30b4 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11710,6 +11710,7 @@ BUILDIN(getmapflag)
case MF_RESET: script_pushint(st,map->list[m].flag.reset); break;
case MF_NOTOMB: script_pushint(st,map->list[m].flag.notomb); break;
case MF_NOCASHSHOP: script_pushint(st,map->list[m].flag.nocashshop); break;
+ case MF_NOVIEWID: script_pushint(st,map->list[m].flag.noviewid); break;
}
}
@@ -11826,6 +11827,7 @@ BUILDIN(setmapflag) {
case MF_RESET: map->list[m].flag.reset = 1; break;
case MF_NOTOMB: map->list[m].flag.notomb = 1; break;
case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 1; break;
+ case MF_NOVIEWID: map->list[m].flag.noviewid = (val <= 0) ? 0 : val; break;
}
}
@@ -11912,6 +11914,7 @@ BUILDIN(removemapflag) {
case MF_RESET: map->list[m].flag.reset = 0; break;
case MF_NOTOMB: map->list[m].flag.notomb = 0; break;
case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 0; break;
+ case MF_NOVIEWID: map->list[m].flag.noviewid = 0; break;
}
}