X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fendpoint.cpp;h=7e33ced696d92cc2abb3da7b54ddfbcaa0606ed6;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=c11f45f9bced45a8ff5ca857d78f513b3d0329bc;hpb=47341c72a70e6cf9d8e963705a50197bbc20a87d;p=r2c2.git diff --git a/source/3d/endpoint.cpp b/source/3d/endpoint.cpp index c11f45f..7e33ced 100644 --- a/source/3d/endpoint.cpp +++ b/source/3d/endpoint.cpp @@ -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