]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/endpoint.cpp
Rename the project to R²C²
[r2c2.git] / source / 3d / endpoint.cpp
index c11f45f9bced45a8ff5ca857d78f513b3d0329bc..7e33ced696d92cc2abb3da7b54ddfbcaa0606ed6 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
 
-This file is part of the MSP Märklin suite
+This file is part of R²C²
 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
@@ -14,7 +14,7 @@ Distributed under the GPL
 
 using namespace Msp;
 
-namespace Marklin {
+namespace R2C2 {
 
 Endpoint3D::Endpoint3D(const Track3D &t, unsigned i):
        track(t),
@@ -31,7 +31,7 @@ Endpoint3D::~Endpoint3D()
 
 void Endpoint3D::render(const GL::Tag &tag) const
 {
-       if(tag==0)
+       if(tag=="unlit")
        {
                Point p = track.get_track().get_endpoint_position(index);
                float a = track.get_track().get_endpoint_direction(index)+M_PI;
@@ -50,4 +50,4 @@ void Endpoint3D::render(const GL::Tag &tag) const
        }
 }
 
-} // namespace Marklin
+} // namespace R2C2