1
0

Fixed not getting XP from mobs.

This commit is contained in:
STRWarrior
2013-12-14 12:50:08 +01:00
parent 39443c63ad
commit 483ef89503
2 changed files with 7 additions and 1 deletions

View File

@@ -49,8 +49,8 @@ void cExpOrb::Tick(float a_Dt, cChunk & a_Chunk)
double Distance(a_Distance.Length());
if (Distance < 0.1f)
{
LOGD("Player %s picked up an ExpOrb. His reward is %i", a_ClosestPlayer->GetName().c_str(), m_Reward);
a_ClosestPlayer->DeltaExperience(m_Reward);
a_ClosestPlayer->SendExperience();
Destroy(true);
}
a_Distance.Normalize();