summaryrefslogtreecommitdiff
path: root/aircraft_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-05 08:15:51 +0000
committerbjarni <bjarni@openttd.org>2006-10-05 08:15:51 +0000
commitff6f83b56ca48d1590ae7adc8f6f85fbfe7c7424 (patch)
tree09af992dd594d5b616ba90411c39a8baa3fb6380 /aircraft_gui.c
parent7606b2707d5bee3f274e1e0dd58b00decd5110a0 (diff)
downloadopenttd-ff6f83b56ca48d1590ae7adc8f6f85fbfe7c7424.tar.xz
(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.
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r--aircraft_gui.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index 95e9969cc..e33d61c48 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -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;
- }
- }
-}