Fix SoTA draw game by Gyullo.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-03-05 14:43:19 -03:00
parent 9dd9096d57
commit 1a4c7c34fe
+4 -2
View File
@@ -253,6 +253,7 @@ void BattleGroundSA::Update(uint32 diff)
}
if(TotalTime >= BG_SA_BOAT_START)
StartShips();
return;
}
else if(status == BG_SA_ROUND_ONE)
@@ -269,7 +270,6 @@ void BattleGroundSA::Update(uint32 diff)
ResetObjs();
return;
}
}
else if(status == BG_SA_ROUND_TWO)
{
@@ -278,7 +278,9 @@ void BattleGroundSA::Update(uint32 diff)
RoundScores[1].time = TotalTime;
RoundScores[1].winner = (attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE;
if(RoundScores[0].time < RoundScores[1].time)
if (RoundScores[0].time == RoundScores[1].time)
EndBattleGround(NULL);
else if(RoundScores[0].time < RoundScores[1].time)
EndBattleGround(RoundScores[0].winner == TEAM_ALLIANCE ? ALLIANCE : HORDE);
else
EndBattleGround(RoundScores[1].winner == TEAM_ALLIANCE ? ALLIANCE : HORDE);