diff options
author | tron <tron@openttd.org> | 2005-02-06 22:25:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-06 22:25:27 +0000 |
commit | eed181245dffbc04a2e527e8e7cccf44ce4fda86 (patch) | |
tree | f2cd6e89c719cd0e1e1f5f36d8b3e1bcb804079f /main_gui.c | |
parent | 27dc506a0313993c8e7dc4acf77da9649d362a58 (diff) | |
download | openttd-eed181245dffbc04a2e527e8e7cccf44ce4fda86.tar.xz |
(svn r1833) byte -> char transition: the rest
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main_gui.c b/main_gui.c index 6089fc3d8..ac298d620 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2102,10 +2102,11 @@ extern GetNewsStringCallbackProc * const _get_news_string_callback[]; static bool DrawScrollingStatusText(NewsItem *ni, int pos) { StringID str; - byte *s, *d; + const char *s; + char *d; DrawPixelInfo tmp_dpi, *old_dpi; int x; - byte buffer[256]; + char buffer[256]; if (ni->display_mode == 3) { str = _get_news_string_callback[ni->callback](ni); @@ -2127,7 +2128,7 @@ static bool DrawScrollingStatusText(NewsItem *ni, int pos) } else if (*s == 0x0D) { d[0] = d[1] = d[2] = d[3] = ' '; d+=4; - } else if (*s >= ' ' && (*s < 0x88 || *s >= 0x99)) { + } else if ((byte)*s >= ' ' && ((byte)*s < 0x88 || (byte)*s >= 0x99)) { *d++ = *s; } } |