aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundAB.cpp
diff options
context:
space:
mode:
authorraczman <none@none>2009-04-04 00:29:43 +0200
committerraczman <none@none>2009-04-04 00:29:43 +0200
commit38d634a1632720fb1ff596f43e988b1b6014ae82 (patch)
tree35e180d33afd35ec75fb2119b44450caa634b952 /src/game/BattleGroundAB.cpp
parentb449693f1737894b9be4d836a9a35abf6b38d4cc (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/BattleGroundAB.cpp')
-rw-r--r--src/game/BattleGroundAB.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/BattleGroundAB.cpp b/src/game/BattleGroundAB.cpp
index 501ac8eef33..1cd5cfad420 100644
--- a/src/game/BattleGroundAB.cpp
+++ b/src/game/BattleGroundAB.cpp
@@ -195,6 +195,7 @@ void BattleGroundAB::Update(time_t diff)
{
m_lastTick[team] -= BG_AB_TickIntervals[points];
m_TeamScores[team] += BG_AB_TickPoints[points];
+ m_score[team] = m_TeamScores[team];
m_HonorScoreTics[team] += BG_AB_TickPoints[points];
m_ReputationScoreTics[team] += BG_AB_TickPoints[points];
if( m_ReputationScoreTics[team] >= BG_AB_ReputationScoreTicks[m_HonorMode] )