summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-09-18 13:59:49 -0400
committerMadCamel <madcamel@gmail.com>2010-09-18 13:59:49 -0400
commit5d4ccf8198953c479d10902eddb2ac8468057307 (patch)
tree712755be32ef4a654f2efd5eb2772105832ad53c
parentbc8df6622b7f7b2129eab428a98ae5b5ab7bb7dc (diff)
downloadtmwa-5d4ccf8198953c479d10902eddb2ac8468057307.tar.gz
tmwa-5d4ccf8198953c479d10902eddb2ac8468057307.tar.bz2
tmwa-5d4ccf8198953c479d10902eddb2ac8468057307.tar.xz
tmwa-5d4ccf8198953c479d10902eddb2ac8468057307.zip
Allow warping to coords >400
Some of our maps are bigger.
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 21ce01d..3c06a77 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1029,7 +1029,7 @@ int atcommand_charwarp (const int fd, struct map_session_data *sd,
{
if (pc_isGM (sd) >= pc_isGM (pl_sd))
{ // you can rura+ only lower or same GM level
- if (x > 0 && x < 400 && y > 0 && y < 400)
+ if (x > 0 && x < 800 && y > 0 && y < 800)
{
m = map_mapname2mapid (map_name);
if (m >= 0 && map[m].flag.nowarpto
@@ -1107,7 +1107,7 @@ int atcommand_warp (const int fd, struct map_session_data *sd,
if (strstr (map_name, ".gat") == NULL && strstr (map_name, ".afm") == NULL && strlen (map_name) < 13) // 16 - 4 (.gat)
strcat (map_name, ".gat");
- if (x > 0 && x < 400 && y > 0 && y < 400)
+ if (x > 0 && x < 800 && y > 0 && y < 800)
{
m = map_mapname2mapid (map_name);
if (m >= 0 && map[m].flag.nowarpto
@@ -1244,7 +1244,7 @@ int atcommand_jump (const int fd, struct map_session_data *sd,
x = MRAND (399) + 1;
if (y <= 0)
y = MRAND (399) + 1;
- if (x > 0 && x < 400 && y > 0 && y < 400)
+ if (x > 0 && x < 800 && y > 0 && y < 800)
{
if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarpto
&& battle_config.any_warp_GM_min_level > pc_isGM (sd))