summaryrefslogtreecommitdiff
path: root/ship_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
commitb0cc6f40225838bbb1663635e85416a830343e70 (patch)
tree09af992dd594d5b616ba90411c39a8baa3fb6380 /ship_gui.c
parentc0ff23c8c58adad57e436c8419c2c831c9d3fd69 (diff)
downloadopenttd-b0cc6f40225838bbb1663635e85416a830343e70.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 'ship_gui.c')
-rw-r--r--ship_gui.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 7bb8cd284..938dd0bf5 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -529,26 +529,3 @@ void ShowShipViewWindow(const Vehicle *v)
AssignWindowViewport(w, 3, 17, 0xE2, 0x54, w->window_number | (1 << 31), 0);
}
}
-
-void DrawSmallOrderListShip(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) {
- if (!IsBuoy(GetStation(order->dest))) {
- SetDParam(0, order->dest);
- DrawString(x, y, STR_A036, 0);
-
- y += 6;
- if (++i == 4) break;
- }
- }
- }
-}