Fixed a goof with viewmodel

it just works!
This commit is contained in:
Tyler Young 2022-11-27 14:28:57 -05:00
parent 11d5544577
commit 9a24596e46
2 changed files with 4 additions and 3 deletions

Binary file not shown.

View file

@ -1709,13 +1709,14 @@ void SCR_UpdateScreen (void)
if(scr_dynamic_fov.value == 0) //sB add dynamic FOV toggle if(scr_dynamic_fov.value == 0) //sB add dynamic FOV toggle
{ {
original_fov = 0; original_fov = 0;
original_view_fov = 0;
} }
else else if(scr_dynamic_fov.value == 1)
{ {
scr_fov.value += (original_fov - 10 - scr_fov.value) * 0.3; scr_fov.value += (original_fov - 10 - scr_fov.value) * 0.3;
scr_fov_viewmodel.value += (original_view_fov - 10 - scr_fov_viewmodel.value) * 0.3; //scr_fov_viewmodel.value += (original_view_fov - 10 - scr_fov_viewmodel.value) * 0.3;
Cvar_SetValue("fov",scr_fov.value); Cvar_SetValue("fov",scr_fov.value);
Cvar_SetValue("r_viewmodel_fov", scr_fov_viewmodel.value); //Cvar_SetValue("r_viewmodel_fov", scr_fov_viewmodel.value);
} }
} }
else if (cl.stats[STAT_ZOOM] == 0 && original_fov != 0) else if (cl.stats[STAT_ZOOM] == 0 && original_fov != 0)