aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-09 16:36:58 -0600
committermegamage <none@none>2009-03-09 16:36:58 -0600
commitf477021938b086080f7f5370e854b3a63f5900fd (patch)
treea58554823533ff057a0f0ef8891a32b9d3e8e0ed /src/game/BattleGround.h
parent2b5805065db7ee3a04fdf86e91c961bf7a0c70b5 (diff)
[7404] Fixed cheating in rated arena matches by alt+f4. Author: Triply
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.h')
-rw-r--r--src/game/BattleGround.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index ea691dc9750..6ddaa43fcc8 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -445,9 +445,10 @@ class BattleGround
// used for rated arena battles
void SetArenaTeamIdForTeam(uint32 Team, uint32 ArenaTeamId) { m_ArenaTeamIds[GetTeamIndexByTeamId(Team)] = ArenaTeamId; }
- uint32 GetArenaTeamIdForTeam(uint32 Team) const { return m_ArenaTeamIds[GetTeamIndexByTeamId(Team)]; }
+ uint32 GetArenaTeamIdForTeam(uint32 Team) const { return m_ArenaTeamIds[GetTeamIndexByTeamId(Team)]; }
void SetArenaTeamRatingChangeForTeam(uint32 Team, int32 RatingChange) { m_ArenaTeamRatingChanges[GetTeamIndexByTeamId(Team)] = RatingChange; }
- int32 GetArenaTeamRatingChangeForTeam(uint32 Team) const { return m_ArenaTeamRatingChanges[GetTeamIndexByTeamId(Team)]; }
+ int32 GetArenaTeamRatingChangeForTeam(uint32 Team) const { return m_ArenaTeamRatingChanges[GetTeamIndexByTeamId(Team)]; }
+ void CheckArenaWinConditions();
/* Triggers handle */
// must be implemented in BG subclass
@@ -460,6 +461,7 @@ class BattleGround
virtual void EventPlayerDroppedFlag(Player* /*player*/) {}
virtual void EventPlayerClickedOnFlag(Player* /*player*/, GameObject* /*target_obj*/) {}
virtual void EventPlayerCapturedFlag(Player* /*player*/) {}
+ void EventPlayerLoggedOut(Player* player);
/* Death related */
virtual WorldSafeLocsEntry const* GetClosestGraveYard(Player* player);