summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-10-17 17:12:19 +1300
committerFreeyorp <Freeyorp101@hotmail.com>2010-10-17 17:24:24 +1300
commitc911fa41d12dbb9f33d51977ba578e83bfdd3be4 (patch)
tree6739c5e3b2a4365f6af7b002c0971b433f231e40 /src
parent0e054272d44735aa7e15e749c95c0a5471033f73 (diff)
downloadmanaserv-c911fa41d12dbb9f33d51977ba578e83bfdd3be4.tar.gz
manaserv-c911fa41d12dbb9f33d51977ba578e83bfdd3be4.tar.bz2
manaserv-c911fa41d12dbb9f33d51977ba578e83bfdd3be4.tar.xz
manaserv-c911fa41d12dbb9f33d51977ba578e83bfdd3be4.zip
Fix hp regeneration units.
Reviewed-by: Bertram
Diffstat (limited to 'src')
-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: