From 168673240a70dcb551ac2b1ba8188c559537c8b7 Mon Sep 17 00:00:00 2001 From: Bertram Date: Thu, 29 Oct 2009 14:31:41 +0100 Subject: Cleaned up the viewport code, when dealing with mouse movement. Now, both eAthena and ManaServ clients follow the mouse correctly when it is dragged. --- src/gui/viewport.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/viewport.h') diff --git a/src/gui/viewport.h b/src/gui/viewport.h index 39dfaa33..e4311222 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -149,12 +149,17 @@ class Viewport : public WindowContainer, public gcn::MouseListener, * Finds a path from the player to the mouse, and draws it. This is for * debug purposes. */ - void drawDebugPath(Graphics *graphics); + void _drawDebugPath(Graphics *graphics); /** * Draws the given path. */ - void drawPath(Graphics *graphics, const Path &path); + void _drawPath(Graphics *graphics, const Path &path); + + /** + * Make the player go to the mouse position. + */ + void _followMouse(); Map *mMap; /**< The current map. */ -- cgit v1.2.3-70-g09d2