aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Reputation/ReputationMgr.cpp
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2014-09-02 19:46:56 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2014-09-02 19:46:56 +0200
commite449159265531d9fe6b8be602350a6e16f0fdf37 (patch)
tree12430eea62b57461f571b60a5e03563cc507f0bd /src/server/game/Reputation/ReputationMgr.cpp
parent8a97243728fbbd8c7541b921f72b2762bffeb79a (diff)
parent09867a10c9c8593ede7641996e6c0ea353f6a51d (diff)
Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
-rw-r--r--src/server/game/Reputation/ReputationMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp
index b136e6893cd..af04e10ea8c 100644
--- a/src/server/game/Reputation/ReputationMgr.cpp
+++ b/src/server/game/Reputation/ReputationMgr.cpp
@@ -239,13 +239,13 @@ void ReputationMgr::SendStates()
SendState(&(itr->second));
}
-void ReputationMgr::SendVisible(FactionState const* faction) const
+void ReputationMgr::SendVisible(FactionState const* faction, bool visible /* = true*/) const
{
if (_player->GetSession()->PlayerLoading())
return;
- // make faction visible in reputation list at client
- WorldPacket data(SMSG_SET_FACTION_VISIBLE, 4);
+ // make faction visible/not visible in reputation list at client
+ WorldPacket data(visible ? SMSG_SET_FACTION_VISIBLE : SMSG_SET_FACTION_NOT_VISIBLE, 4);
data << faction->ReputationListID;
_player->SendDirectMessage(&data);
}