From 07b53f23b743e4090686cf7bf4d933e5d2638df3 Mon Sep 17 00:00:00 2001 From: dominik Date: Tue, 24 Aug 2004 09:09:49 +0000 Subject: (svn r128) Invalid (void) orders in schedule are highlighted in red (Celestar) --- order_gui.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'order_gui.c') diff --git a/order_gui.c b/order_gui.c index c6254b25b..41c430cf0 100644 --- a/order_gui.c +++ b/order_gui.c @@ -119,7 +119,13 @@ static void DrawOrdersWindow(Window *w) { byte color = (i == WP(w,order_d).sel) ? 0xC : 0x10; SET_DPARAM(0, i+1); - DrawString(2, y, str, color); + if ((ord & OT_MASK) != OT_DUMMY) { + DrawString(2, y, str, color); + } else { + SET_DPARAM16(1, STR_INVALID_ORDER); + SET_DPARAM16(2, ord >> 8); + DrawString(2, y, str, color); + } } y += 10; } -- cgit v1.2.3-54-g00ecf