X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fvehicle.cpp;h=37619ebd339461f104dc0bf54aeb6fcfe71e7a67;hb=cc0ee0a5e71590960bc8cb7baee7a10ef09ce3f0;hp=41bb26259da3b2a769c7a93e427acfb76ab1fe0b;hpb=7ff28ec88dedc3a2327feb4a507ae622cb953113;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;