From 28318a6cbd6dffa3e67c796e3953482f243b74b3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 3 May 2006 14:22:59 +0000 Subject: (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) --- aircraft_gui.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'aircraft_gui.c') diff --git a/aircraft_gui.c b/aircraft_gui.c index cb3e9671c..68f5142b8 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -927,11 +927,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) { -- cgit v1.2.3-54-g00ecf