summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-02 21:01:19 +0000
committeryexo <yexo@openttd.org>2009-03-02 21:01:19 +0000
commit90841d55ab9bafb121615e8380fc628b7fb68358 (patch)
treee9a501e2dfa4c1471746f6afb45350815d761a20
parentc63629116ce45db155e7b8f55955b9b87b484f70 (diff)
downloadopenttd-90841d55ab9bafb121615e8380fc628b7fb68358.tar.xz
(svn r15600) -Fix (r0): Replace a newline in a news message by four spaces before drawing it in the statusbar.
-rw-r--r--src/statusbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 56d203a10..447892ec1 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -40,7 +40,7 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width)
WChar c = Utf8Consume(&s);
if (c == 0) {
break;
- } else if (c == 0x0D) {
+ } else if (c == '\n') {
if (d + 4 >= last) break;
d[0] = d[1] = d[2] = d[3] = ' ';
d += 4;