/* $Id$
This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
#include <msp/time/utils.h>
#include "control.h"
#include "layout.h"
+#include "tracktype.h"
#include "trafficmanager.h"
#include "turnout.h"
for(set<Track *>::const_iterator i=tracks.begin(); i!=tracks.end(); ++i)
{
if(unsigned tid=(*i)->get_turnout_id())
- new Turnout(control, tid);
+ new Turnout(control, tid, (*i)->get_type().get_n_routes()>=3);
if(unsigned sid=(*i)->get_sensor_id())
new Sensor(control, sid);