Fix SoTA draw game by Gyullo.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user