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/pc.cpp | |
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/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 29 |
1 files changed, 0 insertions, 29 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; -} - -/*========================================== * *------------------------------------------ */ |