mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r15600) -Fix (r0): Replace a newline in a news message by four spaces before drawing it in the statusbar.
This commit is contained in:
parent
9ff4ae0f5d
commit
6dd3703a4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user