From 2683da54614b9930857b8a7689e7ea0457ed6ef4 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Sun, 19 Sep 2010 03:25:48 +1200 Subject: 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 --- src/game-server/attribute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server/attribute.cpp') 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: -- cgit v1.2.3-70-g09d2