summaryrefslogtreecommitdiff
path: root/src/highscore_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-29 12:09:55 +0000
committerrubidium <rubidium@openttd.org>2013-06-29 12:09:55 +0000
commitbdb62c14e2e7f2ce66aa538f5bed209b6b464cc3 (patch)
tree1a1bf98628f802657fa93693f92e06d6088439eb /src/highscore_gui.cpp
parent66b7123ed91113d147f01206b36a2c8be683c17f (diff)
downloadopenttd-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.cpp3
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);