diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-09-19 03:25:48 +1200 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2010-09-19 05:49:07 +1200 |
commit | 2683da54614b9930857b8a7689e7ea0457ed6ef4 (patch) | |
tree | 307e650a1d989917f7b9eee40c4d82e95a6f8ad7 /src/game-server/accountconnection.hpp | |
parent | f75f98e4cc483a3a0f2019c4bb5f3a18461c4ac2 (diff) | |
download | manaserv-2683da54614b9930857b8a7689e7ea0457ed6ef4.tar.gz manaserv-2683da54614b9930857b8a7689e7ea0457ed6ef4.tar.bz2 manaserv-2683da54614b9930857b8a7689e7ea0457ed6ef4.tar.xz manaserv-2683da54614b9930857b8a7689e7ea0457ed6ef4.zip |
Small fixes.
There is no longer any need to send attribute change information for
character or correction point changes to the account server. This is
now handled elsewhere in a dedicated function.
The account server was already doing this but the game server hadn't
been updated. This wasn't causing any major problems since this data
was being sent at the end of the packet.
Update documentation for the functions accordingly.
Also adjust a misplaced opening curly brace in attribute calculation
which could cause modifiers to be applied wrongly in certain cases.
Reviewed-by: Kage
Diffstat (limited to 'src/game-server/accountconnection.hpp')
-rw-r--r-- | src/game-server/accountconnection.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game-server/accountconnection.hpp b/src/game-server/accountconnection.hpp index e2b793b1..28599f82 100644 --- a/src/game-server/accountconnection.hpp +++ b/src/game-server/accountconnection.hpp @@ -126,12 +126,15 @@ class AccountConnection : public Connection * @param charId ID of the character * @param charPoints character points left for the character * @param corrPoints correction points left for the character + */ + void updateCharacterPoints(int charId, int charPoints, + int corrPoints); + + /** + * @param charId ID of the character * @param attribId ID of the modified attribute * @param attribValue New value of the modified attribute */ - void updateCharacterPoints(int charId, int charPoints, - int corrPoints, int attribId, - int attribValue); void updateAttributes(int charId, int attrId, double base, double mod); |