summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
02453a4)
Return the active path of the track instead.
if(trk.get_type().is_turnout())
{
map<unsigned, int>::const_iterator i = turnouts.find(trk.get_turnout_address());
if(trk.get_type().is_turnout())
{
map<unsigned, int>::const_iterator i = turnouts.find(trk.get_turnout_address());
+ if(i!=turnouts.end() && i->second>=0)
return i->second;
}
return trk.get_active_path();
return i->second;
}
return trk.get_active_path();