summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 5038d9f57..29e7e740c 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -394,4 +394,19 @@ impHandler(follow)
return true;
}
+impHandler(navigate)
+{
+ if (!localPlayer)
+ return false;
+
+ int x = 0;
+ int y = 0;
+
+ if (parse2Int(event.args, x, y))
+ localPlayer->navigateTo(x, y);
+ else
+ localPlayer->navigateClean();
+ return true;
+}
+
} // namespace Actions