diff options
author | Haru <haru@dotalux.com> | 2013-07-14 18:22:31 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-07-14 18:22:31 +0200 |
commit | 0b63deefd251a06b50a333facd6ad0e099e942b2 (patch) | |
tree | a8865c3d622f387175d04a8e879bfa6d0ed23933 /src/map | |
parent | 75359a9cd5faeda4156b56cfc63e2e553cae1785 (diff) | |
download | hercules-0b63deefd251a06b50a333facd6ad0e099e942b2.tar.gz hercules-0b63deefd251a06b50a333facd6ad0e099e942b2.tar.bz2 hercules-0b63deefd251a06b50a333facd6ad0e099e942b2.tar.xz hercules-0b63deefd251a06b50a333facd6ad0e099e942b2.zip |
Removed the now unused optional 3rd parameter from removemapflag
- The parameter was only used in combination with MF_RESTRICTED, now
superseded by MF_ZONE
- Follow-up b08910e8, 90f117f6
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3cb31b726..c48610d3c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10486,13 +10486,10 @@ BUILDIN(removemapflag) { int16 m,i; const char *str; - //int val=0;//warning: variable ‘val’ set but not used" - deprecated? str=script_getstr(st,2); i=script_getnum(st,3); - //if(script_hasdata(st,4)){ - // val=script_getnum(st,4); - //} + m = iMap->mapname2mapid(str); if(m >= 0) { switch(i) { @@ -17768,7 +17765,7 @@ void script_parse_builtin(void) { BUILDIN_DEF(setmapflagnosave,"ssii"), BUILDIN_DEF(getmapflag,"si"), BUILDIN_DEF(setmapflag,"si?"), - BUILDIN_DEF(removemapflag,"si?"), + BUILDIN_DEF(removemapflag,"si"), BUILDIN_DEF(pvpon,"s"), BUILDIN_DEF(pvpoff,"s"), BUILDIN_DEF(gvgon,"s"), |