(svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id

(and should be an uint16, not uint8)
This commit is contained in:
truelight
2005-02-02 16:16:43 +00:00
parent 944bba1031
commit ab3ed5c431
12 changed files with 38 additions and 28 deletions

View File

@@ -432,7 +432,7 @@ static void DrawStationViewWindow(Window *w)
y = 77;
for(i=0; i!=NUM_CARGO; i++) {
if (st->goods[i].enroute_from != 0xFF) {
if (st->goods[i].enroute_from != INVALID_STATION) {
SetDParam(0, _cargoc.names_s[i]);
SetDParam(2, st->goods[i].rating * 101 >> 8);
SetDParam(1, STR_3035_APPALLING + (st->goods[i].rating >> 5));