diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-03 14:22:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-03 14:22:59 +0000 |
commit | 28318a6cbd6dffa3e67c796e3953482f243b74b3 (patch) | |
tree | c8264ac8cfcd455980c548dd7cdea3b422d87110 /ship_gui.c | |
parent | eafbc3362794d792b46a21697745c9eaa4815c84 (diff) | |
download | openttd-28318a6cbd6dffa3e67c796e3953482f243b74b3.tar.xz |
(svn r4709) - Codechange: avoid messing around with globals, magic numbers and literal strings by using a string ID, when drawing the small right arrow for the small order lists (aircraft and ships)
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ship_gui.c b/ship_gui.c index e4eec8efc..ee02af483 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -910,11 +910,7 @@ static void DrawSmallOrderList(const Vehicle* v, int x, int y) sel = v->cur_order_index; FOR_VEHICLE_ORDERS(v, order) { - if (sel == 0) { - _stringwidth_base = 0xE0; - DoDrawString("\xAF", x - 6, y, 16); - _stringwidth_base = 0; - } + if (sel == 0) DrawString(x - 6, y, STR_SMALL_RIGHT_ARROW, 16); sel--; if (order->type == OT_GOTO_STATION) { |