diff options
author | megamage <none@none> | 2009-05-04 17:30:13 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-04 17:30:13 -0500 |
commit | 0ad353f147b65e7b18e2dde653a7d9919e9ddbec (patch) | |
tree | 2df5ea11be24be569c9a11a71720e5eaf2e8cb47 | |
parent | e9091134a86f34b5c97a55b6635e45c7585290cf (diff) |
[7758] Fixed gain reputation and xp reward between group mates in differents instances Author: zhenya
--HG--
branch : trunk
-rw-r--r-- | src/game/Player.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 63def6aabd8..05cc7808087 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -19273,17 +19273,17 @@ void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewar bool Player::IsAtGroupRewardDistance(WorldObject const* pRewardSource) const { - if(pRewardSource->GetDistance(this) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE)) + if (pRewardSource->IsWithinDistInMap(this,sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE))) return true; - if(isAlive()) + if (isAlive()) return false; Corpse* corpse = GetCorpse(); - if(!corpse) + if (!corpse) return false; - return pRewardSource->GetDistance(corpse) <= sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE); + return pRewardSource->IsWithinDistInMap(corpse,sWorld.getConfig(CONFIG_GROUP_XP_DISTANCE)); } uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const |