aboutsummaryrefslogtreecommitdiff
path: root/src/game/ArenaTeam.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-11 20:20:38 +0200
committerSpp <none@none>2010-04-11 20:20:38 +0200
commit65c3e979e2eed9e2485caf65b487dbd2219c0592 (patch)
tree5ecb0c945d99401d87fcfe116dfbc369328c4829 /src/game/ArenaTeam.cpp
parentc592fc75809e420eb3554b12c31eb645a8aae280 (diff)
Tab to Spaces and remove of trailing spaces
--HG-- branch : trunk
Diffstat (limited to 'src/game/ArenaTeam.cpp')
-rw-r--r--src/game/ArenaTeam.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/game/ArenaTeam.cpp b/src/game/ArenaTeam.cpp
index 7d9130f26ee..0a7648030af 100644
--- a/src/game/ArenaTeam.cpp
+++ b/src/game/ArenaTeam.cpp
@@ -312,7 +312,7 @@ void ArenaTeam::Disband(WorldSession *session)
// event
if (session)
{
- // probably only 1 string required...
+ // probably only 1 string required...
BroadcastEvent(ERR_ARENA_TEAM_DISBANDED_S, 0, 2, session->GetPlayerName(), GetName(), "");
}
@@ -487,36 +487,36 @@ void ArenaTeam::BroadcastPacket(WorldPacket *packet)
}
}
-void ArenaTeam::BroadcastEvent(ArenaTeamEvents event, uint64 guid, uint8 strCount, std::string str1, std::string str2, std::string str3)
-{
- WorldPacket data(SMSG_ARENA_TEAM_EVENT, 1+1+1);
- data << uint8(event);
- data << uint8(strCount);
- switch (strCount)
- {
- case 0:
- break;
- case 1:
- data << str1;
- break;
- case 2:
- data << str1 << str2;
- break;
- case 3:
- data << str1 << str2 << str3;
- break;
- default:
- sLog.outError("Unhandled strCount %u in ArenaTeam::BroadcastEvent", strCount);
- return;
+void ArenaTeam::BroadcastEvent(ArenaTeamEvents event, uint64 guid, uint8 strCount, std::string str1, std::string str2, std::string str3)
+{
+ WorldPacket data(SMSG_ARENA_TEAM_EVENT, 1+1+1);
+ data << uint8(event);
+ data << uint8(strCount);
+ switch (strCount)
+ {
+ case 0:
+ break;
+ case 1:
+ data << str1;
+ break;
+ case 2:
+ data << str1 << str2;
+ break;
+ case 3:
+ data << str1 << str2 << str3;
+ break;
+ default:
+ sLog.outError("Unhandled strCount %u in ArenaTeam::BroadcastEvent", strCount);
+ return;
}
- if (guid)
- data << uint64(guid);
-
- BroadcastPacket(&data);
-
- sLog.outDebug("WORLD: Sent SMSG_ARENA_TEAM_EVENT");
-}
+ if (guid)
+ data << uint64(guid);
+
+ BroadcastPacket(&data);
+
+ sLog.outDebug("WORLD: Sent SMSG_ARENA_TEAM_EVENT");
+}
uint8 ArenaTeam::GetSlotByType(uint32 type)
{
@@ -697,7 +697,7 @@ void ArenaTeam::MemberWon(Player * plr, uint32 againstRating)
itr->wins_season += 1;
itr->wins_week += 1;
// update unit fields
- plr->SetArenaTeamInfoField(GetSlot(), ARENA_TEAM_GAMES_WEEK, itr->games_week);
+ plr->SetArenaTeamInfoField(GetSlot(), ARENA_TEAM_GAMES_WEEK, itr->games_week);
plr->SetArenaTeamInfoField(GetSlot(), ARENA_TEAM_GAMES_SEASON, itr->games_season);
return;
}