summaryrefslogtreecommitdiffstats
path: root/src/game-server/character.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/game-server/character.cpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r--src/game-server/character.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 1d32914..f9a9b58 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -139,7 +139,7 @@ void Character::perform()
if (ic)
{
// weapon fighting
- ItemModifiers const &mods = ic->getModifiers();
+ const ItemModifiers &mods = ic->getModifiers();
damage.element = mods.getValue(MOD_ELEMENT_TYPE);
performAttack(damage, ic->getAttackZone());
}
@@ -502,7 +502,7 @@ void Character::disconnected()
for (Listeners::iterator i = mListeners.begin(),
i_end = mListeners.end(); i != i_end;)
{
- EventListener const &l = **i;
+ const EventListener &l = **i;
++i; // In case the listener removes itself from the list on the fly.
if (l.dispatch->disconnected) l.dispatch->disconnected(&l, this);
}