From f094d17f50a8d714bc457e697eff16ca78c746cd Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 4 Mar 2008 08:22:03 +0000 Subject: little off-by-one error --- src/game-server/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit