21 #include "table/strings.h"
37 int timetable_delta = 0;
111 if (ret.
Failed())
return ret;
125 wait_time =
GB(p2, 0, 16);
129 travel_time =
GB(p2, 0, 16);
133 max_speed =
GB(p2, 0, 16);
134 if (max_speed == 0) max_speed = UINT16_MAX;
143 case OT_GOTO_STATION:
205 if (ret.
Failed())
return ret;
230 int j = (int)b_order - (
int)a_order;
240 if (!a_load) a_order--;
241 if (!b_load) b_order--;
244 int i = (int)b_order - (
int)a_order;
245 if (i != 0)
return i;
246 if (j != 0)
return j;
250 if (i != 0)
return i;
269 bool timetable_all =
HasBit(p1, 20);
274 if (ret.
Failed())
return ret;
295 int num_vehs = vehs.
Length();
304 int idx = (viter - vehs.
Begin()) - base;
341 if (ret.
Failed())
return ret;
392 ++first_manual_order;
395 bool just_started =
false;
420 if (travelling && remeasure_wait_time) {
426 if (just_started)
return;
429 if (!real_current_order->
IsType(OT_CONDITIONAL) &&
430 (travelling || time_taken > real_current_order->
GetWaitTime() || remeasure_wait_time)) {
444 }
else if (!travelling && (autofilling || !real_current_order->
IsWaitTimetabled())) {
457 if (autofilling)
return;