From 3199e7b8dbae8eb6025a612073fed230566ba9c6 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 5 May 2010 02:55:51 +0200 Subject: SOTA: Fix team being declared winner when it should be tie Original patch by Gyullo closes issue 1111 --HG-- branch : trunk --- src/game/BattleGroundSA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/BattleGroundSA.cpp b/src/game/BattleGroundSA.cpp index 04eb9b3b567..ffa2167278d 100644 --- a/src/game/BattleGroundSA.cpp +++ b/src/game/BattleGroundSA.cpp @@ -248,7 +248,7 @@ void BattleGroundSA::Update(uint32 diff) { if (TotalTime >= BG_SA_ROUNDLENGTH) { - RoundScores[0].time = TotalTime; + RoundScores[0].time = BG_SA_ROUNDLENGTH; TotalTime = 0; status = BG_SA_SECOND_WARMUP; attackers = (attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE; @@ -263,7 +263,7 @@ void BattleGroundSA::Update(uint32 diff) { if (TotalTime >= BG_SA_ROUNDLENGTH) { - RoundScores[1].time = TotalTime; + RoundScores[1].time = BG_SA_ROUNDLENGTH; RoundScores[1].winner = (attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE; if (RoundScores[0].time == RoundScores[1].time) -- cgit v1.2.3