diff options
author | mekolat <mekolat@gmail.com> | 2015-04-05 18:12:03 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-04-05 18:12:03 -0400 |
commit | 2850d7946c933e69fe468492e6b070fc984d32fd (patch) | |
tree | ae610e68162eff92d22dfcf2a8ed5383d65ccd33 /src/map/script-fun.cpp | |
parent | 6f4699ff0c6400a2adc5e4008b2e289737f4a303 (diff) | |
download | tmwa-2850d7946c933e69fe468492e6b070fc984d32fd.tar.gz tmwa-2850d7946c933e69fe468492e6b070fc984d32fd.tar.bz2 tmwa-2850d7946c933e69fe468492e6b070fc984d32fd.tar.xz tmwa-2850d7946c933e69fe468492e6b070fc984d32fd.zip |
remove deprecated killmonsterall
Diffstat (limited to 'src/map/script-fun.cpp')
-rw-r--r-- | src/map/script-fun.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 8c25266..000b3b7 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -1554,25 +1554,6 @@ void builtin_killmonster(ScriptState *st) BL::MOB); } -static -void builtin_killmonsterall_sub(dumb_ptr<block_list> bl) -{ - mob_delete(bl->is_mob()); -} - -static -void builtin_killmonsterall(ScriptState *st) -{ - MapName mapname = stringish<MapName>(ZString(conv_str(st, &AARG(0)))); - - P<map_local> m = TRY_UNWRAP(map_mapname2mapid(mapname), return); - map_foreachinarea(builtin_killmonsterall_sub, - m, - 0, 0, - m->xs, m->ys, - BL::MOB); -} - /*========================================== * NPC主体イベント実行 *------------------------------------------ @@ -3048,7 +3029,6 @@ BuiltinFunction builtin_functions[] = BUILTIN(monster, "Mxysmi?"_s, '\0'), BUILTIN(areamonster, "Mxyxysmi?"_s, '\0'), BUILTIN(killmonster, "ME"_s, '\0'), - BUILTIN(killmonsterall, "M"_s, '\0'), BUILTIN(donpcevent, "E"_s, '\0'), BUILTIN(addtimer, "tE"_s, '\0'), BUILTIN(initnpctimer, ""_s, '\0'), |