summaryrefslogtreecommitdiff
path: root/npc/commands/warp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/warp.txt')
-rw-r--r--npc/commands/warp.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/commands/warp.txt b/npc/commands/warp.txt
index adca7ab9f..4f98ac533 100644
--- a/npc/commands/warp.txt
+++ b/npc/commands/warp.txt
@@ -54,6 +54,10 @@ OnCall:
++.@e;
}
+ if (getmapflag(.@map$, mf_nowarpto) && !(is_admin() || $@GM_OVERRIDE)) {
+ dispbottom("This map is restricted and cannot be warped to.");
+ close;
+ }
cwarp .@map$, .@x, .@y; // XXX: maybe here use a slide_or_warp function
OnInit: