mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
NX/VITA: Remove decrease in FOV while sprinting
This commit is contained in:
parent
3ccfe3530e
commit
481d4a02e1
1 changed files with 0 additions and 19 deletions
|
@ -2148,25 +2148,6 @@ void SCR_UpdateScreen (void)
|
|||
Cvar_SetValue ("r_viewmodel_fov", 30);
|
||||
zoomin_time = 0;
|
||||
}
|
||||
else if (cl.stats[STAT_ZOOM] == 3)
|
||||
{
|
||||
if(!original_fov){
|
||||
original_fov = scr_fov.value;
|
||||
original_view_fov = scr_fov_viewmodel.value;
|
||||
}
|
||||
if(scr_dynamic_fov.value == 0) //sB add dynamic FOV toggle
|
||||
{
|
||||
Cvar_SetValue ("fov", scr_fov.value);
|
||||
Cvar_SetValue ("r_viewmodel_fov", scr_fov_viewmodel.value);
|
||||
}
|
||||
else if(scr_dynamic_fov.value == 1)
|
||||
{
|
||||
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;
|
||||
Cvar_SetValue("fov",scr_fov.value);
|
||||
Cvar_SetValue("r_viewmodel_fov", scr_fov_viewmodel.value);
|
||||
}
|
||||
}
|
||||
else if (cl.stats[STAT_ZOOM] == 0 && original_fov != 0)
|
||||
{
|
||||
if(scr_fov.value < (original_fov + 1))//+1 for accounting for floating point inaccuracies
|
||||
|
|
Loading…
Reference in a new issue