summaryrefslogtreecommitdiff
path: root/src/intro_gui.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-05 16:55:26 +0000
committeryexo <yexo@openttd.org>2009-07-05 16:55:26 +0000
commitda5d63e260ae88a82f91a998fa81844eec409ca1 (patch)
tree47a09bdb730e47bfe8a2e4f7aaf4053f3fe1b8c9 /src/intro_gui.cpp
parent96201f1a41ee091ec9a1556893f83b92e28de7a0 (diff)
downloadopenttd-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.cpp2
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));
}
}