Fix timetabled full-load order warning being shown for non station orders

This commit is contained in:
Jonathan G Rennison
2017-10-01 16:41:36 +01:00
parent 9559ad4946
commit 3d629b0dea

View File

@@ -577,7 +577,7 @@ struct TimetableWindow : Window {
} }
} }
if (!have_bad_full_load && (assume_timetabled || order->IsWaitTimetabled())) { if (order->IsType(OT_GOTO_STATION) && !have_bad_full_load && (assume_timetabled || order->IsWaitTimetabled())) {
if (order->GetLoadType() & OLFB_FULL_LOAD) have_bad_full_load = true; if (order->GetLoadType() & OLFB_FULL_LOAD) have_bad_full_load = true;
if (order->GetLoadType() == OLFB_CARGO_TYPE_LOAD) { if (order->GetLoadType() == OLFB_CARGO_TYPE_LOAD) {
for (CargoID c = 0; c < NUM_CARGO; c++) { for (CargoID c = 0; c < NUM_CARGO; c++) {