summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:41 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:41 +0300
commit65c3c7a8ac6437d507597b840fc20dc1cad5fbf1 (patch)
treefc6ff6da1aa6a97e4cd8f84309010d47a65b01ff /src/being/localplayer.cpp
parent8fb2c062cd1c03f032b99f4a7e7663c0653ba837 (diff)
downloadmanaverse-65c3c7a8ac6437d507597b840fc20dc1cad5fbf1.tar.gz
manaverse-65c3c7a8ac6437d507597b840fc20dc1cad5fbf1.tar.bz2
manaverse-65c3c7a8ac6437d507597b840fc20dc1cad5fbf1.tar.xz
manaverse-65c3c7a8ac6437d507597b840fc20dc1cad5fbf1.zip
Add missing const in being directory.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index ef034fc22..c3cf67d66 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -566,7 +566,7 @@ Being *LocalPlayer::setNewTarget(const ActorTypeT type,
localPlayer, 20, type, allowSort);
if (target && target != mTarget)
- localPlayer->setTarget(target);
+ setTarget(target);
return target;
}
@@ -1267,8 +1267,8 @@ void LocalPlayer::moveToTarget(int dist)
unsigned int f = 0;
for (Path::const_iterator i = debugPath.begin(),
- i_end = debugPath.end();
- i != i_end && f < limit; ++i, f++)
+ i_fend = debugPath.end();
+ i != i_fend && f < limit; ++i, f++)
{
pos = (*i);
}
@@ -1799,7 +1799,9 @@ void LocalPlayer::saveHomes()
std::stringstream ss;
for (std::map<std::string, Vector>::const_iterator iter = mHomes.begin(),
- iter_end = mHomes.end(); iter != iter_end; ++iter )
+ iter_fend = mHomes.end();
+ iter != iter_fend;
+ ++iter)
{
const Vector &pos = (*iter).second;
@@ -2077,7 +2079,9 @@ void LocalPlayer::updateCoords()
else
{
for (Path::const_iterator i = mNavigatePath.begin(),
- i_end = mNavigatePath.end(); i != i_end; ++ i)
+ i_fend = mNavigatePath.end();
+ i != i_fend;
+ ++i)
{
if ((*i).x == mX && (*i).y == mY)
{