diff options
author | mekolat <mekolat@gmail.com> | 2015-04-15 12:49:46 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2015-04-15 12:49:46 -0400 |
commit | 9f78807e495e22606440c92b63b916354c0c0524 (patch) | |
tree | 4cc0ed32d624d3bf5facb1163bf3dbc78e899f51 /src/map | |
parent | b40878ca800cdbd9b3e79b3880ccfd9e9b65483d (diff) | |
download | tmwa-9f78807e495e22606440c92b63b916354c0c0524.tar.gz tmwa-9f78807e495e22606440c92b63b916354c0c0524.tar.bz2 tmwa-9f78807e495e22606440c92b63b916354c0c0524.tar.xz tmwa-9f78807e495e22606440c92b63b916354c0c0524.zip |
remove unused pc_randomwarp
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.cpp | 29 | ||||
-rw-r--r-- | src/map/pc.hpp | 1 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index e73d79f..29be372 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -2285,35 +2285,6 @@ int pc_setpos(dumb_ptr<map_session_data> sd, } /*========================================== - * PCのランダムワープ - *------------------------------------------ - */ -int pc_randomwarp(dumb_ptr<map_session_data> sd, BeingRemoveWhy type) -{ - int x, y, i = 0; - - nullpo_retz(sd); - - P<map_local> m = sd->bl_m; - - if (sd->bl_m->flag.get(MapFlag::NOTELEPORT)) // テレポート禁止 - return 0; - - do - { - x = random_::in(1, m->xs - 2); - y = random_::in(1, m->ys - 2); - } - while (bool(read_gatp(m, x, y) & MapCell::UNWALKABLE) - && (i++) < 1000); - - if (i < 1000) - pc_setpos(sd, m->name_, x, y, type); - - return 0; -} - -/*========================================== * *------------------------------------------ */ diff --git a/src/map/pc.hpp b/src/map/pc.hpp index 14829d1..6879f79 100644 --- a/src/map/pc.hpp +++ b/src/map/pc.hpp @@ -91,7 +91,6 @@ int pc_walktoxy(dumb_ptr<map_session_data>, int, int); int pc_stop_walking(dumb_ptr<map_session_data>, int); int pc_setpos(dumb_ptr<map_session_data>, MapName, int, int, BeingRemoveWhy); void pc_setsavepoint(dumb_ptr<map_session_data>, MapName, int, int); -int pc_randomwarp(dumb_ptr<map_session_data> sd, BeingRemoveWhy type); ADDITEM pc_checkadditem(dumb_ptr<map_session_data>, ItemNameId, int); int pc_inventoryblank(dumb_ptr<map_session_data>); |