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/script.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/script.c')
-rw-r--r-- | src/map/script.c | 3 |
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; } } |