diff options
author | yexo <yexo@openttd.org> | 2009-07-05 16:55:26 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-07-05 16:55:26 +0000 |
commit | da5d63e260ae88a82f91a998fa81844eec409ca1 (patch) | |
tree | 47a09bdb730e47bfe8a2e4f7aaf4053f3fe1b8c9 /src/intro_gui.cpp | |
parent | 96201f1a41ee091ec9a1556893f83b92e28de7a0 (diff) | |
download | openttd-da5d63e260ae88a82f91a998fa81844eec409ca1.tar.xz |
(svn r16753) -Fix (r16740): Don't check the width of the same string 4 times, but pick the maximum width of all difficulty levels
Diffstat (limited to 'src/intro_gui.cpp')
-rw-r--r-- | src/intro_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp index d61f5b252..dcc55b131 100644 --- a/src/intro_gui.cpp +++ b/src/intro_gui.cpp @@ -88,7 +88,7 @@ struct SelectGameWindow : public Window { Dimension d = {0, 0}; if (widget == SGI_DIFFICULTIES) { for (uint i = STR_DIFFICULTY_LEVEL_EASY; i <= STR_DIFFICULTY_LEVEL_CUSTOM; i++) { - SetDParam(0, STR_DIFFICULTY_LEVEL_EASY + _settings_newgame.difficulty.diff_level); + SetDParam(0, i); d = maxdim(d, GetStringBoundingBox(STR_INTRO_DIFFICULTY)); } } |