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/BattleGroundEY.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/BattleGroundEY.cpp')
| -rw-r--r-- | src/game/BattleGroundEY.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/BattleGroundEY.cpp b/src/game/BattleGroundEY.cpp index e9eba524349..ecf454d1cfe 100644 --- a/src/game/BattleGroundEY.cpp +++ b/src/game/BattleGroundEY.cpp @@ -166,6 +166,7 @@ void BattleGroundEY::AddPoints(uint32 Team, uint32 Points) { uint8 team_index = GetTeamIndexByTeamId(Team); m_TeamScores[team_index] += Points; + m_score[team_index] = m_TeamScores[team_index]; m_HonorScoreTics[team_index] += Points; if (m_HonorScoreTics[team_index] >= BG_EY_HonorScoreTicks[m_HonorMode]) { |
