Typo.
Еще исправить опечатку в теме...
Код:
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 2739697..aaaa906 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -130,7 +130,7 @@ enum CharacterCustomizeFlags
#define DEATH_EXPIRE_STEP (5*MINUTE)
#define MAX_DEATH_COUNT 3
-static uint32 copseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 };
+static const uint32 corpseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 };
//== PlayerTaxi ================================================
@@ -21382,13 +21382,13 @@ uint32 Player::GetCorpseReclaimDelay(bool pvp) const
if ((pvp && !sWorld.getConfig(CONFIG_BOOL_DEATH_CORPSE_RECLAIM_DELAY_PVP)) ||
(!pvp && !sWorld.getConfig(CONFIG_BOOL_DEATH_CORPSE_RECLAIM_DELAY_PVE)))
{
- return copseReclaimDelay[0];
+ return corpseReclaimDelay[0];
}
time_t now = time(NULL);
// 0..2 full period
uint32 count = (now < m_deathExpireTime) ? uint32((m_deathExpireTime - now) / DEATH_EXPIRE_STEP) : 0;
- return copseReclaimDelay[count];
+ return corpseReclaimDelay[count];
}
void Player::UpdateCorpseReclaimDelay()
@@ -21438,7 +21438,7 @@ void Player::SendCorpseReclaimDelay(bool load)
else
count = 0;
- time_t expected_time = corpse->GetGhostTime() + copseReclaimDelay[count];
+ time_t expected_time = corpse->GetGhostTime() + corpseReclaimDelay[count];
time_t now = time(NULL);
if (now >= expected_time)