mirror of https://github.com/OpenTTD/OpenTTD
(svn r17400) -Fix [FS#3172] (r17380): total line of performance rating was calculated wrong
parent
d81a3ba2da
commit
b294497f2a
|
@ -1124,8 +1124,8 @@ struct PerformanceRatingDetailWindow : Window {
|
||||||
|
|
||||||
/* SCORE_TOTAL has his own rules ;) */
|
/* SCORE_TOTAL has his own rules ;) */
|
||||||
if (score_type == SCORE_TOTAL) {
|
if (score_type == SCORE_TOTAL) {
|
||||||
for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) needed += _score_info[i].needed;
|
for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) score += _score_info[i].score;
|
||||||
score = SCORE_MAX;
|
needed = SCORE_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawString(7, 107, r.top + 6, STR_PERFORMANCE_DETAIL_VEHICLES + score_type);
|
DrawString(7, 107, r.top + 6, STR_PERFORMANCE_DETAIL_VEHICLES + score_type);
|
||||||
|
|
Loading…
Reference in New Issue