cl_zoomfactor 1 results in division by zero
Having cl_zoomfactor 1
(i.e. disabling zoom) seems to work but results in lots of warnings about division by zero:
client VM warning: Attempted division of -0.019052 by zero
s217965: m:486: CALL2 almost_equals (=almost_equals())
s217966: m:486: IFNOT GLOBAL1, statement 217969
s217967: m:487: STORE_F GLOBAL19177, current_zoomfraction (=0)
s217968: m:484: GOTO , statement 217843
s217969: m:489: SUB_F current_viewzoom (=0.980948329), GLOBAL19177, GLOBAL34832
s217970: m:489: DIV GLOBAL19177, GLOBAL34853, GLOBAL34835
s217971: m:489: SUB_F GLOBAL34835, GLOBAL19177, GLOBAL34835
s217972: m:489: DIV GLOBAL34832, GLOBAL34835, current_zoomfraction (=0)
m:489 : GetCurrentFov : statement 202
m:1531 : View_UpdateFov : statement 18
./client/view.qc:1692 : _CSQC_UpdateView : statement 178
:297 : CSQC_UpdateView : statement 5
Those warnings clutter the console logs, which are otherwise tidy. Therefore I'd like to get rid of their cause.
Workaround: Setting cl_zoomfactor 1.00001
gets rid of those warnings.
I suppose that there is a way to properly remove that singularity.
Edited by Christian Cornelssen