diff options
author | rubidium <rubidium@openttd.org> | 2009-09-03 10:50:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-03 10:50:14 +0000 |
commit | b294497f2a7bbcb9979a2e5210f3d638cb0da462 (patch) | |
tree | fd84d9924211441dc73cf21cffba7515c269c405 /src | |
parent | d81a3ba2da1f0677228c295c2ad1a3da386bdda0 (diff) | |
download | openttd-b294497f2a7bbcb9979a2e5210f3d638cb0da462.tar.xz |
(svn r17400) -Fix [FS#3172] (r17380): total line of performance rating was calculated wrong
Diffstat (limited to 'src')
-rw-r--r-- | src/graph_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 07bd731fb..511f60fd1 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1124,8 +1124,8 @@ struct PerformanceRatingDetailWindow : Window { /* 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); |