summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-04 08:22:03 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-04 08:22:03 +0000
commitf094d17f50a8d714bc457e697eff16ca78c746cd (patch)
tree8b57b2f3c111dbf86b588b899b496613ab7b6336 /src/game-server
parent41079fd0e69cde97fcb44d2e6fe03ad198764fea (diff)
downloadmanaserv-f094d17f50a8d714bc457e697eff16ca78c746cd.tar.gz
manaserv-f094d17f50a8d714bc457e697eff16ca78c746cd.tar.bz2
manaserv-f094d17f50a8d714bc457e697eff16ca78c746cd.tar.xz
manaserv-f094d17f50a8d714bc457e697eff16ca78c746cd.zip
little off-by-one error
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index a97d6097..9164aa43 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -229,7 +229,7 @@ void Being::update()
int maxHP = getAttribute(BASE_ATTR_HP);
// regenerate HP
- if (mAction != DEAD && mHpRegenTimer++ >= TICKS_PER_HP_REGENERATION)
+ if (mAction != DEAD && ++mHpRegenTimer >= TICKS_PER_HP_REGENERATION)
{
mHpRegenTimer = 0;
newHP += getModifiedAttribute(BASE_ATTR_HP_REGEN);