(svn r6646) -Codechange: [vehicle list window] Cleaned up the drawing code

This moved a few of the strings and sprites a few pixels. Hopefully this will work out ok.
This commit is contained in:
bjarni
2006-10-05 08:15:51 +00:00
parent 7606b2707d
commit ff6f83b56c
6 changed files with 68 additions and 91 deletions

View File

@@ -585,24 +585,3 @@ void ShowAircraftViewWindow(const Vehicle *v)
AssignWindowViewport(w, 3, 17, 0xE2, 0x54, w->window_number | (1 << 31), 0);
}
}
void DrawSmallOrderListAircraft(const Vehicle *v, int x, int y)
{
const Order *order;
int sel, i = 0;
sel = v->cur_order_index;
FOR_VEHICLE_ORDERS(v, order) {
if (sel == 0) DrawString(x - 6, y, STR_SMALL_RIGHT_ARROW, 16);
sel--;
if (order->type == OT_GOTO_STATION) {
SetDParam(0, order->dest);
DrawString(x, y, STR_A036, 0);
y += 6;
if (++i == 4) break;
}
}
}