[7759] Fixed [7758] commit.

This commit is contained in:
AlexDereka 2009-05-04 16:17:45 +04:00
parent b1bfdddeb2
commit c81c5ab961
2 changed files with 3 additions and 6 deletions

View file

@ -18700,10 +18700,7 @@ void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewar
bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
{
if (GetInstanceId() != pRewardSource->GetInstanceId())
return false;
if (pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))
if (pRewardSource->IsWithinDistInMap(this,sWorld.getConfig(CONFIG_GR OUP_XP_DISTANCE)))
return true;
if (isAlive())
@ -18713,7 +18710,7 @@ bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const
if (!corpse)
return false;
return pRewardSource->GetDistance(corpse) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE);
return pRewardSource->IsWithinDistInMap(corpse,sWorld.getConfig(CONFIG_GR OUP_XP_DISTANCE));
}
uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7758"
#define REVISION_NR "7759"
#endif // __REVISION_NR_H__