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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index eb10e8a77..dd93da0e8 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -34,6 +34,7 @@
#include "being/playerrelations.h"
#include "gui/chatconsts.h"
+#include "gui/viewport.h"
#include "gui/windows/chatwindow.h"
#include "gui/windows/socialwindow.h"
@@ -472,6 +473,19 @@ impHandler(navigateTo)
return true;
}
+impHandler(moveCamera)
+{
+ int x = 0;
+ int y = 0;
+
+ if (!viewport)
+ return false;
+
+ if (parse2Int(event.args, x, y))
+ viewport->moveCameraToPosition(x * mapTileSize, y * mapTileSize);
+ return true;
+}
+
impHandler(imitation)
{
if (!localPlayer)