diff options
author | megamage <none@none> | 2009-04-08 16:33:46 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-08 16:33:46 -0500 |
commit | 1294bbac41501407ab7226a141c69846555dcb56 (patch) | |
tree | ccc9e4a6dee5a348a7f1325a7d95b741b479e2f1 /src/game/BattleGround.h | |
parent | 3a21b3d758c83ccaffdd0fbc25c8259fe32203a8 (diff) |
[7632] more "if"-condition related codestyle in battlegroundfiles Author: balrok,Triply
this time with this regex:
sed -i 's/if *( *\(.*\) *)$/if (\1)/' BattleGround*
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.h')
-rw-r--r-- | src/game/BattleGround.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h index d33eb76e02c..9788f264502 100644 --- a/src/game/BattleGround.h +++ b/src/game/BattleGround.h @@ -361,7 +361,7 @@ class BattleGround void IncreaseInvitedCount(uint32 team) { (team == ALLIANCE) ? ++m_InvitedAlliance : ++m_InvitedHorde; } uint32 GetInvitedCount(uint32 team) const { - if( team == ALLIANCE ) + if (team == ALLIANCE) return m_InvitedAlliance; else return m_InvitedHorde; @@ -444,7 +444,7 @@ class BattleGround uint32 GetAlivePlayersCountByTeam(uint32 Team) const; // used in arenas to correctly handle death in spirit of redemption / last stand etc. (killer = killed) cases void UpdatePlayersCountByTeam(uint32 Team, bool remove) { - if(remove) + if (remove) --m_PlayersCount[GetTeamIndexByTeamId(Team)]; else ++m_PlayersCount[GetTeamIndexByTeamId(Team)]; |