Commit b814f6e7 authored by Luis Peñaranda's avatar Luis Peñaranda
Browse files

avoided fov_max=0

parent b102f57b
...@@ -87,7 +87,7 @@ void OpenGLCanvas::change_fov(int new_fov){ ...@@ -87,7 +87,7 @@ void OpenGLCanvas::change_fov(int new_fov){
} }
void OpenGLCanvas::change_fov_max(int new_fov_max){ void OpenGLCanvas::change_fov_max(int new_fov_max){
if(new_fov_max<=360&&new_fov_max>=0) if(new_fov_max<=360&&new_fov_max>=1)
fov_max=(double)new_fov_max; fov_max=(double)new_fov_max;
if (fov<=fov_max) if (fov<=fov_max)
scale=1.f; scale=1.f;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment