summaryrefslogtreecommitdiff
path: root/src/game-server/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r--src/game-server/character.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 4a43a172..b96bc6fe 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -412,8 +412,8 @@ void Character::updateDerivedAttributes(unsigned int attr)
break;
case ATTR_HP_REGEN:
{
- double temp = getModifiedAttribute(ATTR_VIT) * 0.05;
- newBase = (temp * TICKS_PER_HP_REGENERATION);
+ double hpPerSec = getModifiedAttribute(ATTR_VIT) * 0.05;
+ newBase = (hpPerSec * TICKS_PER_HP_REGENERATION / 10);
}
break;
case ATTR_HP: