diff options
| author | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-04 08:22:03 +0000 |
|---|---|---|
| committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-04 08:22:03 +0000 |
| commit | f094d17f50a8d714bc457e697eff16ca78c746cd (patch) | |
| tree | 8b57b2f3c111dbf86b588b899b496613ab7b6336 /src | |
| parent | 41079fd0e69cde97fcb44d2e6fe03ad198764fea (diff) | |
little off-by-one error
Diffstat (limited to 'src')
| -rw-r--r-- | src/game-server/being.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index a97d609..9164aa4 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); |
