summaryrefslogtreecommitdiff
path: root/station_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-06 22:25:27 +0000
committertron <tron@openttd.org>2005-02-06 22:25:27 +0000
commiteed181245dffbc04a2e527e8e7cccf44ce4fda86 (patch)
treef2cd6e89c719cd0e1e1f5f36d8b3e1bcb804079f /station_gui.c
parent27dc506a0313993c8e7dc4acf77da9649d362a58 (diff)
downloadopenttd-eed181245dffbc04a2e527e8e7cccf44ce4fda86.tar.xz
(svn r1833) byte -> char transition: the rest
Diffstat (limited to 'station_gui.c')
-rw-r--r--station_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/station_gui.c b/station_gui.c
index df1b419ba..14d93c21d 100644
--- a/station_gui.c
+++ b/station_gui.c
@@ -317,8 +317,6 @@ static void DrawStationViewWindow(Window *w)
int pos;
StringID str;
uint16 station_id;
- byte *b;
-
station_id = (uint16)w->window_number;
@@ -401,6 +399,8 @@ static void DrawStationViewWindow(Window *w)
} while (pos > -5 && ++i != 12);
if (IsWindowOfPrototype(w, _station_view_widgets)) {
+ char *b;
+
b = _userstring;
b[0] = 0x81;
b[1] = STR_000C_ACCEPTS;
@@ -408,7 +408,7 @@ static void DrawStationViewWindow(Window *w)
b += 3;
for(i=0; i!=NUM_CARGO; i++) {
- if ((b - (byte *) &_userstring) + 5 > USERSTRING_LEN - 1)
+ if ((b - _userstring) + 5 > USERSTRING_LEN - 1)
break;
if (st->goods[i].waiting_acceptance & 0x8000) {
b[0] = 0x81;
@@ -418,7 +418,7 @@ static void DrawStationViewWindow(Window *w)
}
}
- if (b == (byte*)&_userstring[3]) {
+ if (b == &_userstring[3]) {
b[0] = 0x81;
b[1] = STR_00D0_NOTHING;
b[2] = STR_00D0_NOTHING >> 8;