X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fbeamgate.cpp;fp=source%2Flibr2c2%2Fbeamgate.cpp;h=20a218b22e22a7926b52f20bf4b067d0aa5f51a5;hb=5929b101ee38b5668b328e7b1eac4bf49c912412;hp=463a3a967e717c78d64efa81189a05926cc88c9c;hpb=4c8c03d25ec4d58772ceb5b287deab645fdae19f;p=r2c2.git diff --git a/source/libr2c2/beamgate.cpp b/source/libr2c2/beamgate.cpp index 463a3a9..20a218b 100644 --- a/source/libr2c2/beamgate.cpp +++ b/source/libr2c2/beamgate.cpp @@ -50,7 +50,7 @@ void BeamGate::set_rotation(const Angle &r) void BeamGate::update_attachment() { - attach_to_closest(100*TrackAttachment::layout.get_catalogue().get_gauge()); + attach_to_closest(100); if(track) {