From e19482bcb4a0867ca729779ab680fd10b849d797 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 3 Jan 2009 22:14:32 -0600 Subject: *Fix a bug about corpse reclaim delay timer. --HG-- branch : trunk --- src/game/Player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 36d261827e3..0db4a665d80 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18792,7 +18792,8 @@ uint32 Player::GetCorpseReclaimDelay(bool pvp) const time_t now = time(NULL); // 0..2 full period - uint32 count = (now < m_deathExpireTime) ? (m_deathExpireTime - now)/DEATH_EXPIRE_STEP : 0; + // should be ceil(x)-1 but not floor(x) + uint32 count = (now < m_deathExpireTime - 1) ? (m_deathExpireTime - 1 - now)/DEATH_EXPIRE_STEP : 0; return copseReclaimDelay[count]; } -- cgit v1.2.3