X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.cpp;h=37619ebd339461f104dc0bf54aeb6fcfe71e7a67;hb=dc3b2bce73df40ea885a1960a825e5cd3a33c045;hp=41bb26259da3b2a769c7a93e427acfb76ab1fe0b;hpb=3b3099eb9e6d14e2a0495ea78144a734a102112f;p=r2c2.git diff --git a/source/3d/vehicle.cpp b/source/3d/vehicle.cpp index 41bb262..37619eb 100644 --- a/source/3d/vehicle.cpp +++ b/source/3d/vehicle.cpp @@ -37,8 +37,16 @@ Point Vehicle3D::get_node() const return Point(p.x, p.y, p.z+0.01+vehicle.get_type().get_height()); } +bool Vehicle3D::is_visible() const +{ + return vehicle.get_track(); +} + void Vehicle3D::render(const GL::Tag &tag) const { + if(!vehicle.get_track()) + return; + if(tag==0) { GL::PushMatrix push_mat;