Only apply bonus to players who finished

This commit is contained in:
Beu 2024-04-05 15:12:29 +02:00
parent 51273a46ef
commit bade6e62c0

View File

@ -674,7 +674,7 @@ Integer GetFinishTimeout(Integer _FinishTimeout) {
Points = PointsRepartition[PointsRepartition.count - 1]; Points = PointsRepartition[PointsRepartition.count - 1];
} }
declare Integer CurrentSegment for Player.Score; declare Integer CurrentSegment for Player.Score;
if (CurrentSegment == S_SegmentsPerRound) { if (CurrentSegment == S_SegmentsPerRound && Scores::GetPlayerPrevRaceTime(Player.Score) > 0) {
Points += BonusForFinishers; Points += BonusForFinishers;
} }
Scores::SetPlayerRoundPoints(Player.Score, Points); Scores::SetPlayerRoundPoints(Player.Score, Points);