(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)

This commit is contained in:
peter1138 2006-05-03 14:22:59 +00:00
parent d50896be63
commit 790d0b1703
3 changed files with 4 additions and 10 deletions

View File

@ -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) {

View File

@ -944,6 +944,8 @@ STR_CRATES :crates
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 - -

View File

@ -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) {