summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-24 09:09:49 +0000
committerdominik <dominik@openttd.org>2004-08-24 09:09:49 +0000
commit07b53f23b743e4090686cf7bf4d933e5d2638df3 (patch)
tree40809ec2ae206858d778ade823dcf5b126799c72
parente2f627a22ed2a38542b63ac65a73499a2d9f32aa (diff)
downloadopenttd-07b53f23b743e4090686cf7bf4d933e5d2638df3.tar.xz
(svn r128) Invalid (void) orders in schedule are highlighted in red (Celestar)
-rw-r--r--lang/english.txt2
-rw-r--r--order_gui.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/lang/english.txt b/lang/english.txt
index 5e29e4a4a..047c15161 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -2205,6 +2205,8 @@ STR_SERVICE_NON_STOP_AT_TRAIN_DEPOT :Service non-stop at {TOWN} Train Depot
STR_HEADING_FOR_TRAIN_DEPOT :{LTBLUE}Heading for {TOWN} Train Depot
STR_HEADING_FOR_TRAIN_DEPOT_VEL :{LTBLUE}Heading for {TOWN} Train Depot, {VELOCITY}
+STR_INVALID_ORDER :{RED} (Invalid Order)
+
STR_UNKNOWN_DESTINATION :unknown destination
STR_8812_EMPTY :{LTBLUE}Empty
STR_8813_FROM :{LTBLUE}{CARGO} from {STATION}
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;
}