diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:05:18 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:18:21 +0200 |
commit | 43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch) | |
tree | 4aba689b76138118b4da043425fb3e8576db418c /src/game-server/being.cpp | |
parent | e726c34606f85347e70a0deb6b180db03b6d0c25 (diff) | |
download | manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2 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/being.cpp')
-rw-r--r-- | src/game-server/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index 7319bcbe..a1991551 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -46,7 +46,7 @@ Being::Being(ThingType type): } } -int Being::damage(Actor *, Damage const &damage) +int Being::damage(Actor *, const Damage &damage) { if (mAction == DEAD) return 0; @@ -108,7 +108,7 @@ void Being::died() 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->died) l.dispatch->died(&l, this); } @@ -218,7 +218,7 @@ int Being::directionToAngle(int direction) } } -void Being::performAttack(Damage const &damage, AttackZone const *attackZone) +void Being::performAttack(const Damage &damage, const AttackZone *attackZone) { Point ppos = getPosition(); const int attackAngle = directionToAngle(getDirection()); |