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

avoided fov_max=0

parent b102f57b
......@@ -87,7 +87,7 @@ void OpenGLCanvas::change_fov(int new_fov){
}
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;
if (fov<=fov_max)
scale=1.f;
......
Markdown is supported
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