diff options
author | rubidium <rubidium@openttd.org> | 2013-06-29 12:09:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-06-29 12:09:55 +0000 |
commit | bdb62c14e2e7f2ce66aa538f5bed209b6b464cc3 (patch) | |
tree | 1a1bf98628f802657fa93693f92e06d6088439eb /src/highscore_gui.cpp | |
parent | 66b7123ed91113d147f01206b36a2c8be683c17f (diff) | |
download | openttd-bdb62c14e2e7f2ce66aa538f5bed209b6b464cc3.tar.xz |
(svn r25513) -Fix [FS#5623]: the high score's company/president name was stored with encoded string codes, causing it to cause trouble when the encoding of the string codes changes. Furthermore, check the incoming dangerous content better
Diffstat (limited to 'src/highscore_gui.cpp')
-rw-r--r-- | src/highscore_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index 5485866aa..9b832e3f5 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -190,7 +190,8 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow { if (hs[i].company[0] != '\0') { TextColour colour = (this->rank == i) ? TC_RED : TC_BLACK; // draw new highscore in red - DrawString(pt.x + 71, pt.x + 569, pt.y + 140 + (i * 55), hs[i].company, colour); + SetDParamStr(0, hs[i].company); + DrawString(pt.x + 71, pt.x + 569, pt.y + 140 + (i * 55), STR_JUST_BIG_RAW_STRING, colour); SetDParam(0, hs[i].title); SetDParam(1, hs[i].score); DrawString(pt.x + 71, pt.x + 569, pt.y + 140 + FONT_HEIGHT_LARGE + (i * 55), STR_HIGHSCORE_STATS, colour); |