Since AIControl and TrainRouter don't emit statements to the state file,
they are not created automatically when loading the state. If they are
missing, the timetable won't be able to operate.
#include <msp/strings/format.h>
+#include "aicontrol.h"
#include "clock.h"
#include "layout.h"
#include "timetable.h"
#include "train.h"
+#include "trainrouter.h"
#include "zone.h"
using namespace std;
current_row(rows.end()),
update_pending(false)
{
+ if(!train.get_ai_of_type<AIControl>())
+ new AIControl(train);
+ if(!train.get_ai_of_type<TrainRouter>())
+ new TrainRouter(train);
+
train.signal_ai_event.connect(sigc::mem_fun(this, &Timetable::event));
}