equal
deleted
inserted
replaced
20 #include "depot.h" |
20 #include "depot.h" |
21 #include "waypoint.h" |
21 #include "waypoint.h" |
22 #include "train.h" |
22 #include "train.h" |
23 #include "water_map.h" |
23 #include "water_map.h" |
24 #include "vehicle_gui.h" |
24 #include "vehicle_gui.h" |
|
25 #include "cargotype.h" |
25 |
26 |
26 enum OrderWindowWidgets { |
27 enum OrderWindowWidgets { |
27 ORDER_WIDGET_CLOSEBOX = 0, |
28 ORDER_WIDGET_CLOSEBOX = 0, |
28 ORDER_WIDGET_CAPTION, |
29 ORDER_WIDGET_CAPTION, |
29 ORDER_WIDGET_ORDER_LIST, |
30 ORDER_WIDGET_ORDER_LIST, |
178 if (order->flags & OF_FULL_LOAD) s++; /* service at */ |
179 if (order->flags & OF_FULL_LOAD) s++; /* service at */ |
179 |
180 |
180 SetDParam(1, s); |
181 SetDParam(1, s); |
181 if (order->refit_cargo < NUM_CARGO) { |
182 if (order->refit_cargo < NUM_CARGO) { |
182 SetDParam(3, STR_REFIT_ORDER); |
183 SetDParam(3, STR_REFIT_ORDER); |
183 SetDParam(4, _cargoc.names_s[order->refit_cargo]); |
184 SetDParam(4, GetCargo(order->refit_cargo)->name); |
184 } else { |
185 } else { |
185 SetDParam(3, STR_EMPTY); |
186 SetDParam(3, STR_EMPTY); |
186 } |
187 } |
187 break; |
188 break; |
188 } |
189 } |