X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fbeamgate.cpp;h=15c2b8e05fea22587ccb0fb114441b2b805d1cc2;hb=0a2bd90a3d4f5e7333eba59f29e4a0fbcb11175e;hp=463a3a967e717c78d64efa81189a05926cc88c9c;hpb=db0146da06b7db507a510eed7b53aa59905b38ac;p=r2c2.git diff --git a/source/libr2c2/beamgate.cpp b/source/libr2c2/beamgate.cpp index 463a3a9..15c2b8e 100644 --- a/source/libr2c2/beamgate.cpp +++ b/source/libr2c2/beamgate.cpp @@ -1,5 +1,4 @@ #include "beamgate.h" -#include "catalogue.h" #include "layout.h" using namespace std; @@ -50,7 +49,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) {