summaryrefslogtreecommitdiff
path: root/src/game-server/attribute.cpp
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-09-19 03:25:48 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-09-19 05:49:07 +1200
commit2683da54614b9930857b8a7689e7ea0457ed6ef4 (patch)
tree307e650a1d989917f7b9eee40c4d82e95a6f8ad7 /src/game-server/attribute.cpp
parentf75f98e4cc483a3a0f2019c4bb5f3a18461c4ac2 (diff)
downloadmanaserv-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/attribute.cpp')
-rw-r--r--src/game-server/attribute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/attribute.cpp b/src/game-server/attribute.cpp
index 37ac07b5..0feb1fd0 100644
--- a/src/game-server/attribute.cpp
+++ b/src/game-server/attribute.cpp
@@ -179,8 +179,8 @@ void AttributeModifiersEffect::updateMod(double value)
bool AttributeModifiersEffect::recalculateModifiedValue(double newPrevLayerValue)
{
double oldValue = mCacheVal;
- switch (mEType)
- case AME_ADD: {
+ switch (mEType) {
+ case AME_ADD:
switch (mSType) {
case TY_ST:
case TY_NSTB: