summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-05-10 21:13:10 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-05-10 21:13:10 -0300
commit52a58b5a82cea7210efffc88f14706973bb1dfa3 (patch)
tree093619b18b8288cbd419b8e1258b7b70f0bd4e01 /src/map/atcommand.c
parentfa24fdb97db2aca73d94bb584835e9e864c8d085 (diff)
downloadhercules-52a58b5a82cea7210efffc88f14706973bb1dfa3.tar.gz
hercules-52a58b5a82cea7210efffc88f14706973bb1dfa3.tar.bz2
hercules-52a58b5a82cea7210efffc88f14706973bb1dfa3.tar.xz
hercules-52a58b5a82cea7210efffc88f14706973bb1dfa3.zip
* Implemented suggestion in topic:528, related to GMs being able to warp to non-walkable cells; also added configuration.
* Few changes to gitignore and gitattributes. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9fda83546..6ffceac8e 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -410,7 +410,7 @@ ACMD(mapmove)
return false;
}
- if ((x || y) && map_getcell(m, x, y, CELL_CHKNOPASS))
+ if ((x || y) && map_getcell(m, x, y, CELL_CHKNOPASS) && pc_get_group_level(sd) < battle_config.gm_ignore_warpable_area)
{ //This is to prevent the pc_setpos call from printing an error.
clif->message(fd, msg_txt(2));
if (!map_search_freecell(NULL, m, &x, &y, 10, 10, 1))