mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r12666) -Fix: the time table GUI did not show some data in the correct manner.
This commit is contained in:
parent
5c8444638e
commit
d02f46b959
@ -139,22 +139,23 @@ static void DrawTimetableWindow(Window *w)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OT_GOTO_DEPOT:
|
case OT_GOTO_DEPOT:
|
||||||
|
SetDParam(4, STR_EMPTY);
|
||||||
if (v->type == VEH_AIRCRAFT) {
|
if (v->type == VEH_AIRCRAFT) {
|
||||||
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
|
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
|
||||||
SetDParam(1, STR_GO_TO_NEAREST_DEPOT);
|
SetDParam(0, STR_GO_TO_NEAREST_DEPOT);
|
||||||
SetDParam(3, STR_ORDER_NEAREST_HANGAR);
|
SetDParam(2, STR_ORDER_NEAREST_HANGAR);
|
||||||
} else {
|
} else {
|
||||||
SetDParam(1, STR_GO_TO_HANGAR);
|
SetDParam(0, STR_GO_TO_HANGAR);
|
||||||
SetDParam(3, order->GetDestination());
|
SetDParam(2, order->GetDestination());
|
||||||
}
|
}
|
||||||
SetDParam(4, STR_EMPTY);
|
SetDParam(3, STR_EMPTY);
|
||||||
} else {
|
} else {
|
||||||
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
|
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
|
||||||
SetDParam(1, STR_GO_TO_NEAREST_DEPOT);
|
SetDParam(0, STR_GO_TO_NEAREST_DEPOT);
|
||||||
SetDParam(3, STR_ORDER_NEAREST_DEPOT);
|
SetDParam(2, STR_ORDER_NEAREST_DEPOT);
|
||||||
} else {
|
} else {
|
||||||
SetDParam(1, STR_GO_TO_DEPOT);
|
SetDParam(0, STR_GO_TO_DEPOT);
|
||||||
SetDParam(3, GetDepot(order->GetDestination())->town_index);
|
SetDParam(2, GetDepot(order->GetDestination())->town_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (v->type) {
|
switch (v->type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user