]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/engineer.cpp
Angle must be divided by the correct type
[r2c2.git] / source / engineer / engineer.cpp
index e92c0ae161674c1b70d967f7fad5746245b5431a..ae803c414bd18553bdbeae1c36139c25bccad83d 100644 (file)
@@ -312,7 +312,7 @@ void Engineer::view_all()
        const Layout3D::TrackMap &tracks = layout_3d.get_tracks();
 
        float view_aspect = float(window.get_width()-200)/window.get_height();
-       float view_height = tan(camera.get_field_of_view()/2)*2;
+       float view_height = tan(camera.get_field_of_view()/2.0f)*2.0f;
        float best_score = 0;
        GL::Vector3 pos;
        GL::Vector3 up;