# HG changeset patch # User peter1138 # Date 1146666179 0 # Node ID 84cadfb100edcdd8004de12eb586d458ef9a83e1 # Parent 391e7044899f05c466d21628efb3b7d547b8b77d (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) diff -r 391e7044899f -r 84cadfb100ed aircraft_gui.c --- a/aircraft_gui.c Wed May 03 12:17:02 2006 +0000 +++ b/aircraft_gui.c Wed May 03 14:22:59 2006 +0000 @@ -927,11 +927,7 @@ 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) { diff -r 391e7044899f -r 84cadfb100ed lang/english.txt --- a/lang/english.txt Wed May 03 12:17:02 2006 +0000 +++ b/lang/english.txt Wed May 03 14:22:59 2006 +0000 @@ -944,6 +944,8 @@ STR_RES_OTHER :other STR_NOTHING : +STR_SMALL_RIGHT_ARROW :{TINYFONT}{RIGHTARROW} + STR_CANT_SHARE_ORDER_LIST :{WHITE}Can't share order list... STR_CANT_COPY_ORDER_LIST :{WHITE}Can't copy order list... STR_END_OF_SHARED_ORDERS :{SETX 10}- - End of Shared Orders - - diff -r 391e7044899f -r 84cadfb100ed ship_gui.c --- a/ship_gui.c Wed May 03 12:17:02 2006 +0000 +++ b/ship_gui.c Wed May 03 14:22:59 2006 +0000 @@ -910,11 +910,7 @@ 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) {