diff options
author | yexo <yexo@openttd.org> | 2009-03-02 21:01:19 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-02 21:01:19 +0000 |
commit | 6dd3703a4caafff9a56d878ffac6ce322739067d (patch) | |
tree | e9a501e2dfa4c1471746f6afb45350815d761a20 /src/statusbar_gui.cpp | |
parent | 9ff4ae0f5d7de6e328c6cf66eb5100fdc0953967 (diff) | |
download | openttd-6dd3703a4caafff9a56d878ffac6ce322739067d.tar.xz |
(svn r15600) -Fix (r0): Replace a newline in a news message by four spaces before drawing it in the statusbar.
Diffstat (limited to 'src/statusbar_gui.cpp')
-rw-r--r-- | src/statusbar_gui.cpp | 2 |
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; |