X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fsignal.cpp;h=7aa999438055f4fa31fd6d73ee052f556eeab9ef;hb=8a2b5c1ac2fc07e280dc678165d2ca58f7d07e32;hp=72b35a737015f0d74349380cde8ac3a81c92b9bf;hpb=b28062f2dc88e082ee5a28b2e1f7c4c8bd989023;p=r2c2.git diff --git a/source/libr2c2/signal.cpp b/source/libr2c2/signal.cpp index 72b35a7..7aa9994 100644 --- a/source/libr2c2/signal.cpp +++ b/source/libr2c2/signal.cpp @@ -70,7 +70,7 @@ void Signal::set_rotation(const Angle &r) void Signal::update_attachment() { - attach_to_closest(layout.get_catalogue().get_gauge()*2); + attach_to_closest(2); if(track) block = track.block_iter(); @@ -112,7 +112,7 @@ void Signal::tick(const Time::TimeDelta &) { if(iter->get_sensor_address()) ++n_blocks; - iter=iter.next(); + iter = iter.next(); } check_allocated_blocks = false;