diff options
author | darkvater <darkvater@openttd.org> | 2005-01-11 00:54:06 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-11 00:54:06 +0000 |
commit | 5fac6142e849c08279a893f24fe50e5840e94813 (patch) | |
tree | e10943405d0221995867614d413adaef452ac9b6 /graph_gui.c | |
parent | 085563653fb49794ca2c0ef09f544b08a80012f9 (diff) | |
download | openttd-5fac6142e849c08279a893f24fe50e5840e94813.tar.xz |
(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while
-These values are saved in hs.dat; added read/write functions for it
-Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
Diffstat (limited to 'graph_gui.c')
-rw-r--r-- | graph_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graph_gui.c b/graph_gui.c index c9b5d1377..4a51eef68 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -1026,9 +1026,9 @@ static const StringID _performance_titles[] = { STR_706E_TYCOON, }; -static StringID GetPerformanceTitleFromValue(uint v) +static inline StringID GetPerformanceTitleFromValue(uint value) { - return _performance_titles[minu(v, 1000) >> 6]; + return _performance_titles[minu(value, 1000) >> 6]; } static int CDECL _perf_hist_comp(const void *elem1, const void *elem2 ) { |