From 9f78807e495e22606440c92b63b916354c0c0524 Mon Sep 17 00:00:00 2001 From: mekolat Date: Wed, 15 Apr 2015 12:49:46 -0400 Subject: remove unused pc_randomwarp --- src/map/pc.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/map/pc.cpp') 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 @@ -2284,35 +2284,6 @@ int pc_setpos(dumb_ptr sd, return 0; } -/*========================================== - * PCのランダムワープ - *------------------------------------------ - */ -int pc_randomwarp(dumb_ptr sd, BeingRemoveWhy type) -{ - int x, y, i = 0; - - nullpo_retz(sd); - - P 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; -} - /*========================================== * *------------------------------------------ -- cgit v1.2.3-70-g09d2