summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-05-06 13:02:40 -0500
committerWushin <pasekei@gmail.com>2015-05-06 13:02:40 -0500
commit85edc4773feebcf492be2c7e7684fab57f49b465 (patch)
tree5bc966846769799fb715155f56dd3180513e2c14 /src/map/pc.cpp
parentf9f5d7d036d9419e2953fe30873c754e07dd7df5 (diff)
parent9f78807e495e22606440c92b63b916354c0c0524 (diff)
downloadtmwa-85edc4773feebcf492be2c7e7684fab57f49b465.tar.gz
tmwa-85edc4773feebcf492be2c7e7684fab57f49b465.tar.bz2
tmwa-85edc4773feebcf492be2c7e7684fab57f49b465.tar.xz
tmwa-85edc4773feebcf492be2c7e7684fab57f49b465.zip
Merge pull request #57 from mekolat/patch-1
remove special warp names
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index e8e526a..6fa35b0 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -2289,35 +2289,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;
-}
-
-/*==========================================
*
*------------------------------------------
*/