From 4a21e45a63137009a654a212ea7512ecc2846648 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 25 Aug 2012 15:43:51 +0300 Subject: Add consts to being class. --- src/localplayer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index a12aacc91..b9e012d45 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -84,7 +84,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, void slowLogic(); - virtual void setAction(Action action, int attackType = 0); + virtual void setAction(const Action action, const int attackType = 0); /** * Compute the next pathnode location when walking using keyboard. @@ -160,7 +160,7 @@ class LocalPlayer : public Being, public ActorSpriteListener, /** * Sets a new destination for this being to walk to. */ - virtual void setDestination(int x, int y); + virtual void setDestination(const int x, const int y); /** * Sets a new direction to keep walking in. -- cgit v1.2.3-60-g2f50