]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/path.cpp
Add a shortcut for getting the gauge of a TrackType
[r2c2.git] / source / 3d / path.cpp
index 8c36a3088f249f65305e9c13c5ea4e0a7f1d1e7f..1b4dba54fe03ee75674d3d4b649ea211a8692552 100644 (file)
@@ -59,7 +59,7 @@ void Path3D::set_color(const GL::Color &c)
 
 void Path3D::set_layer(float l)
 {
-       z_offs = l*track.get_track().get_type().get_appearance().get_gauge()*0.01;
+       z_offs = l*track.get_track().get_type().get_gauge()*0.01;
 }
 
 void Path3D::path_changed(unsigned p)