summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/being.cpp3
-rw-r--r--src/game-server/monster.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 9400f5df..e266da0d 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -432,7 +432,8 @@ bool Being::recalculateBaseAttribute(unsigned int attr)
newBase = 3.0 + getModifiedAttribute(ATTR_AGI) * 0.08; // Provisional.
break;
case ATTR_MOVE_SPEED_RAW:
- newBase = utils::tpsToSpeed(getModifiedAttribute(ATTR_MOVE_SPEED_TPS));
+ newBase = utils::tpsToRawSpeed(
+ getModifiedAttribute(ATTR_MOVE_SPEED_TPS));
break;
case ATTR_INV_CAPACITY:
// Provisional
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index d78f04ba..661aca5e 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -107,7 +107,7 @@ Monster::Monster(MonsterClass *specy):
// Set the speed in tiles per second.
setAttribute(ATTR_MOVE_SPEED_RAW,
- utils::tpsToSpeed(getAttribute(ATTR_MOVE_SPEED_TPS)));
+ utils::tpsToRawSpeed(getAttribute(ATTR_MOVE_SPEED_TPS)));
setSize(specy->getSize());
// Set positions relative to target from which the monster can attack