From 6acb9795dc147bd3c015abea33ef1c9d7fa89635 Mon Sep 17 00:00:00 2001 From: Jan125 Date: Sun, 4 Feb 2024 15:08:44 +0100 Subject: [PATCH] Fix typo in Player.cpp (#29638) copseReclaimDelay -> corpseReclaimDelay This should not break anything. (cherry picked from commit e7ff4fe613e5b99b4e7c9553078d2947eabf7c07) --- src/server/game/Entities/Player/Player.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 0702547eae..1ccdc8c85c 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -158,7 +158,7 @@ enum PlayerSpells SPELL_EXPERIENCE_ELIMINATED = 206662, }; -static uint32 copseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 }; +static uint32 corpseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 }; Player::Player(WorldSession* session) : Unit(true), m_sceneMgr(this) { @@ -26599,7 +26599,7 @@ uint32 Player::GetCorpseReclaimDelay(bool pvp) const if (pvp) { if (!sWorld->getBoolConfig(CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP)) - return copseReclaimDelay[0]; + return corpseReclaimDelay[0]; } else if (!sWorld->getBoolConfig(CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE)) return 0; @@ -26608,7 +26608,7 @@ uint32 Player::GetCorpseReclaimDelay(bool pvp) const // 0..2 full period // should be ceil(x)-1 but not floor(x) uint64 count = (now < m_deathExpireTime - 1) ? (m_deathExpireTime - 1 - now) / DEATH_EXPIRE_STEP : 0; - return copseReclaimDelay[count]; + return corpseReclaimDelay[count]; } void Player::UpdateCorpseReclaimDelay() @@ -26662,7 +26662,7 @@ int32 Player::CalculateCorpseReclaimDelay(bool load) const count = MAX_DEATH_COUNT - 1; } - time_t expected_time = corpse->GetGhostTime() + copseReclaimDelay[count]; + time_t expected_time = corpse->GetGhostTime() + corpseReclaimDelay[count]; time_t now = GameTime::GetGameTime(); if (now >= expected_time)