X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fpath.cpp;h=bd6b5b18715eb68d596d084f1d1c3daa37323cd8;hb=4b7008978ce5b67e7e1db14b4a359e4ab1881bbd;hp=e413ace021d2bec89cb7b132832b5b93919621db;hpb=d27edb207810f0b4e44be8c3632d421faa5fed80;p=r2c2.git diff --git a/source/3d/path.cpp b/source/3d/path.cpp index e413ace..bd6b5b1 100644 --- a/source/3d/path.cpp +++ b/source/3d/path.cpp @@ -1,12 +1,12 @@ /* $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 */ #include -#include "libmarklin/tracktype.h" +#include "libr2c2/tracktype.h" #include "layout.h" #include "path.h" #include "track.h" @@ -14,7 +14,7 @@ Distributed under the GPL using namespace Msp; -namespace Marklin { +namespace R2C2 { Path3D::Path3D(const Track3D &t): track(t), @@ -63,16 +63,17 @@ void Path3D::set_layer(float l) void Path3D::render(const GL::Tag &tag) const { - if(tag==0) + if(tag=="unlit") { unsigned mask = (automatic ? 1<>=1) @@ -81,4 +82,4 @@ void Path3D::render(const GL::Tag &tag) const } } -} // namespace Marklin +} // namespace R2C2