From d9c2fc9b34fbb291b4d42bb1070fdff07cd56914 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Nov 2015 16:05:17 +0300 Subject: Move code for converting mouse position to tile into separate function. --- src/gui/viewport.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/viewport.h') diff --git a/src/gui/viewport.h b/src/gui/viewport.h index fa2dd7508..f682cd96f 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -204,6 +204,11 @@ class Viewport final : public WindowContainer, void walkByMouse(const MouseEvent &event); + void getMouseTile(const int x, + const int y, + int &destX, + int &destY); + /** * Make the player go to the mouse position. */ -- cgit v1.2.3-70-g09d2