aboutsummaryrefslogtreecommitdiff
path: root/src/game/ChannelMgr.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:14:10 +0200
committerSpp <none@none>2010-04-07 19:14:10 +0200
commitd19e12708001fbef2308be0e8cb5375a2ac7af48 (patch)
tree09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/ChannelMgr.cpp
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
Diffstat (limited to 'src/game/ChannelMgr.cpp')
-rw-r--r--src/game/ChannelMgr.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/ChannelMgr.cpp b/src/game/ChannelMgr.cpp
index 90c1b62f69a..18011a742ee 100644
--- a/src/game/ChannelMgr.cpp
+++ b/src/game/ChannelMgr.cpp
@@ -28,9 +28,9 @@ ChannelMgr* channelMgr(uint32 team)
if (sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL))
return &Trinity::Singleton<AllianceChannelMgr>::Instance(); // cross-faction
- if(team == ALLIANCE)
+ if (team == ALLIANCE)
return &Trinity::Singleton<AllianceChannelMgr>::Instance();
- if(team == HORDE)
+ if (team == HORDE)
return &Trinity::Singleton<HordeChannelMgr>::Instance();
return NULL;
@@ -68,9 +68,9 @@ Channel *ChannelMgr::GetChannel(std::string name, Player *p, bool pkt)
ChannelMap::const_iterator i = channels.find(wname);
- if(i == channels.end())
+ if (i == channels.end())
{
- if(pkt)
+ if (pkt)
{
WorldPacket data;
MakeNotOnPacket(&data,name);
@@ -91,12 +91,12 @@ void ChannelMgr::LeftChannel(std::string name)
ChannelMap::const_iterator i = channels.find(wname);
- if(i == channels.end())
+ if (i == channels.end())
return;
Channel* channel = i->second;
- if(channel->GetNumPlayers() == 0 && !channel->IsConstant())
+ if (channel->GetNumPlayers() == 0 && !channel->IsConstant())
{
channels.erase(wname);
delete channel;