Mercurial > hg > openttd
changeset 12908:730eacf8ad29 draft
(svn r17400) -Fix [FS#3172] (r17380): total line of performance rating was calculated wrong
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 03 Sep 2009 10:50:14 +0000 |
parents | e9cf7bf2bbbd |
children | 082fb426c8cf |
files | src/graph_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1124,8 +1124,8 @@ /* SCORE_TOTAL has his own rules ;) */ if (score_type == SCORE_TOTAL) { - for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) needed += _score_info[i].needed; - score = SCORE_MAX; + for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) score += _score_info[i].score; + needed = SCORE_MAX; } DrawString(7, 107, r.top + 6, STR_PERFORMANCE_DETAIL_VEHICLES + score_type);