X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fbeamgate.cpp;h=698cb4595ac5fa1091993ad78842b855ee9ca0c6;hb=58c56db5f740d9d3c56ff64f4062b108076c63c3;hp=bb382ffe89c04681dd559c52ca844621229a2109;hpb=0443ca05cbd306487131f5f5bd3b91181ae4a733;p=r2c2.git diff --git a/source/libr2c2/beamgate.cpp b/source/libr2c2/beamgate.cpp index bb382ff..698cb45 100644 --- a/source/libr2c2/beamgate.cpp +++ b/source/libr2c2/beamgate.cpp @@ -54,9 +54,10 @@ void BeamGate::update_attachment() if(track) { - TrackPoint tp = track.point(); - position = tp.pos; - rotation = tp.dir; + OrientedPoint p = track.point(); + position = p.position; + rotation = p.rotation; + tilt = p.tilt; } }