summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 23:56:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-02 14:28:17 +0300
commit520a495c466793c29f3e721634dfe6cc616b8ede (patch)
tree749b67f5d4df83f6f4997dabeb66ec394eabccd7 /src/being
parentf9030497b6196ce2fadb6b6ada5d784be227d9a6 (diff)
downloadplus-520a495c466793c29f3e721634dfe6cc616b8ede.tar.gz
plus-520a495c466793c29f3e721634dfe6cc616b8ede.tar.bz2
plus-520a495c466793c29f3e721634dfe6cc616b8ede.tar.xz
plus-520a495c466793c29f3e721634dfe6cc616b8ede.zip
Add missing const.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp3
-rw-r--r--src/being/localplayer.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 3813f5121..feb6c590a 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -3370,7 +3370,8 @@ void LocalPlayer::imitateDirection(const Being *const being,
}
}
-void LocalPlayer::imitateOutfit(Being *const player, const int sprite) const
+void LocalPlayer::imitateOutfit(const Being *const player,
+ const int sprite) const
{
if (!player)
return;
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 5e8e0e8fe..a0ff28dc2 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -349,7 +349,8 @@ class LocalPlayer final : public Being,
void imitateDirection(const Being *const being,
const unsigned char dir);
- void imitateOutfit(Being *const player, const int sprite = -1) const;
+ void imitateOutfit(const Being *const player,
+ const int sprite = -1) const;
void followMoveTo(const Being *const being, const int x, const int y);