From ece6cb6c4830c5133731314a786570cf0e458f1a Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 13 Apr 2010 01:00:12 +0400 Subject: [PATCH] [9739] Use local var value instead recalculation. --- src/game/Object.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Object.cpp b/src/game/Object.cpp index a1317c8ea..4ed5c24ee 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1531,7 +1531,7 @@ void WorldObject::MonsterTextEmote(int32 textId, uint64 TargetGuid, bool IsBossE MaNGOS::MonsterChatBuilder say_build(*this, IsBossEmote ? CHAT_MSG_RAID_BOSS_EMOTE : CHAT_MSG_MONSTER_EMOTE, textId,LANG_UNIVERSAL,TargetGuid); MaNGOS::LocalizedPacketDo say_do(say_build); MaNGOS::PlayerDistWorker > say_worker(this,range,say_do); - Cell::VisitWorldObjects(this, say_worker, sWorld.getConfig(IsBossEmote ? CONFIG_FLOAT_LISTEN_RANGE_YELL : CONFIG_FLOAT_LISTEN_RANGE_TEXTEMOTE)); + Cell::VisitWorldObjects(this, say_worker, range); } void WorldObject::MonsterWhisper(int32 textId, uint64 receiver, bool IsBossWhisper) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index cd76bf36a..a5c6b8fec 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9738" + #define REVISION_NR "9739" #endif // __REVISION_NR_H__