diff options
| author | raczman <none@none> | 2009-04-04 00:29:43 +0200 |
|---|---|---|
| committer | raczman <none@none> | 2009-04-04 00:29:43 +0200 |
| commit | 38d634a1632720fb1ff596f43e988b1b6014ae82 (patch) | |
| tree | 35e180d33afd35ec75fb2119b44450caa634b952 /src/game/BattleGroundAV.cpp | |
| parent | b449693f1737894b9be4d836a9a35abf6b38d4cc (diff) | |
Fixed BG mark rewarding in case of prematurely finished BG:
-team with most points will get 3 marks, the other one 1 mark
-in case of a draw, each team gets 1 mark (not sure if blizzlike)
TODO:
-remove per BG score variables and substitute them further with general m_score[] array to avoid data duplication.
Please report any bugs, and TC2 devs - dont pull this change into TC2, its not 309-like.
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGroundAV.cpp')
| -rw-r--r-- | src/game/BattleGroundAV.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/BattleGroundAV.cpp b/src/game/BattleGroundAV.cpp index 9eced355ba3..6086d0be441 100644 --- a/src/game/BattleGroundAV.cpp +++ b/src/game/BattleGroundAV.cpp @@ -229,6 +229,8 @@ void BattleGroundAV::UpdateScore(uint16 team, int16 points ) uint8 teamindex = GetTeamIndexByTeamId(team); //0=ally 1=horde m_Team_Scores[teamindex] += points; + m_score[teamindex] = m_Team_Scores[teamindex]; + UpdateWorldState(((teamindex==BG_TEAM_HORDE)?AV_Horde_Score:AV_Alliance_Score), m_Team_Scores[teamindex]); if( points < 0) { |
