summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-22 01:18:41 +0200
committerBertram <bertram@cegetel.net>2009-10-22 01:18:41 +0200
commit4720134d58cd5fe0846ed911b360ed75641cb874 (patch)
tree3ac3292f26a30971f424bdbd794f4daf3159adfe /src/localplayer.h
parentc36ab53b35e336e21fce5943d7d609ea02f8cea9 (diff)
downloadmana-4720134d58cd5fe0846ed911b360ed75641cb874.tar.gz
mana-4720134d58cd5fe0846ed911b360ed75641cb874.tar.bz2
mana-4720134d58cd5fe0846ed911b360ed75641cb874.tar.xz
mana-4720134d58cd5fe0846ed911b360ed75641cb874.zip
Fix flipping player's direction when using keyboard to walk diagonally.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 9229c583..57e1bb35 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -367,10 +367,14 @@ class LocalPlayer : public Player
std::pair<int, int> getExperience(int skill);
- /** Tells the path has been set by mouse */
+ /** Tells that the path has been set by mouse. */
void pathSetByMouse()
{ mPathSetByMouse = true; }
+ /** Tells if the path has been set by mouse. */
+ bool isPathSetByMouse() const
+ { return mPathSetByMouse; }
+
bool mUpdateName; /** Whether or not the name settings have changed */
bool mMapInitialized; /** Whether or not the map is available yet */