summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game-server/being.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 07a0a9fc..7f3dda6f 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -552,7 +552,12 @@ void Being::updateDerivedAttributes(unsigned int attr)
raiseUpdateFlags(UPDATEFLAG_HEALTHCHANGE);
break;
case ATTR_MOVE_SPEED_TPS:
- updateDerivedAttributes(ATTR_MOVE_SPEED_RAW);
+ if (getAttribute(attr) > 0.0f)
+ setAttribute(ATTR_MOVE_SPEED_RAW, utils::tpsToRawSpeed(
+ getModifiedAttribute(ATTR_MOVE_SPEED_TPS)));
+ break;
+ default:
+ // Do nothing
break;
}
}