aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-14 16:49:23 -0700
committermaximius <none@none>2009-09-14 16:49:23 -0700
commit140ec674a040bdc04086472330a289c2d15ecc65 (patch)
tree343ac40e805c3139a2bc1bd80e956e89c5a1653c /src/game/BattleGround.cpp
parentb37f9b1e55bd4b80597b8b8c3f461aad70ccc5c1 (diff)
Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 7163a9874f8..8ac19588b7c 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1906,6 +1906,5 @@ WorldSafeLocsEntry const* BattleGround::GetClosestGraveYard( Player* player )
bool BattleGround::IsTeamScoreInRange(uint32 team, uint32 minScore, uint32 maxScore) const
{
BattleGroundTeamId team_idx = GetTeamIndexByTeamId(team);
- uint32 score = (m_TeamScores[team_idx] < 0) ? 0 : uint32(m_TeamScores[team_idx]);
- return score >= minScore && score <= maxScore;
+ return m_TeamScores[team_idx] >= minScore && m_TeamScores[team_idx] <= maxScore;
}