-
- if(current_row->type==DEPART)
- {
- const Clock &clock = train.get_layout().get_clock();
-
- Time::TimeDelta t = clock.get_current_time();
- if(t<current_row->time)
- t += Time::day;
-
- Time::TimeDelta b = t-dt*clock.get_rate();
- if(b<current_row->time)
- {
- train.ai_message(Message("set-target-speed", train.get_maximum_speed()));
- ++current_row;
- }
- }