diff options
author | Haru <haru@dotalux.com> | 2019-06-01 16:24:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 16:24:19 +0200 |
commit | 0c15e816e4facb92b06b13615cf6713eaea490f2 (patch) | |
tree | 83f2b49d0f0a9b6622b858908cd5ccb205b4c24d /src | |
parent | 0e18ff7d7fb86451fd3ac2bb7e18327dce3afaf4 (diff) | |
parent | 3bfc14f1eb52980e8a8610b4f4533fe81966bb98 (diff) | |
download | hercules-0c15e816e4facb92b06b13615cf6713eaea490f2.tar.gz hercules-0c15e816e4facb92b06b13615cf6713eaea490f2.tar.bz2 hercules-0c15e816e4facb92b06b13615cf6713eaea490f2.tar.xz hercules-0c15e816e4facb92b06b13615cf6713eaea490f2.zip |
Merge pull request #2380 from AnnieRuru/59-all_All
Standardize to "all" in script commands
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 60253bff8..d9c3660d0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11058,10 +11058,16 @@ static BUILDIN(killmonster) int16 m,allflag=0; mapname=script_getstr(st,2); event=script_getstr(st,3); - if(strcmp(event,"All")==0) + + if (strcmpi(event, "all") == 0) { + if (strcmp(event, "all") != 0) { + ShowWarning("buildin_killmonster: \"%s\" deprecated! Please use \"all\" instead.\n", event); + script->reportsrc(st); + } allflag = 1; - else + } else { script->check_event(st, event); + } if( (m=map->mapname2mapid(mapname))<0 ) return true; |