]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/beamgate.cpp
Create another track iterator class that holds an offset as well
[r2c2.git] / source / libr2c2 / beamgate.cpp
index 550c97c4ca457ace5deed6f5c9fdec7ae8fe8562..bb382ffe89c04681dd559c52ca844621229a2109 100644 (file)
@@ -34,11 +34,6 @@ const BeamGateType &BeamGate::get_type() const
        return BeamGateType::instance();
 }
 
-void BeamGate::set_address(unsigned a)
-{
-       address = a;
-}
-
 void BeamGate::set_position(const Vector &p)
 {
        position = p;
@@ -59,7 +54,7 @@ void BeamGate::update_attachment()
 
        if(track)
        {
-               TrackPoint tp = track->get_point(track.entry(), offset);
+               TrackPoint tp = track.point();
                position = tp.pos;
                rotation = tp.dir;
        }