mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-15 05:41:59 +00:00
[renderer] Reset fov when fisheye disabled
This fixes the badly stretched view after disabling fisheye.
This commit is contained in:
parent
c5d27f5162
commit
866cdcf068
1 changed files with 6 additions and 5 deletions
|
@ -526,16 +526,17 @@ r_nearclip_f (void *data, const cvar_t *cvar)
|
|||
static void
|
||||
scr_fov_f (void *data, const cvar_t *cvar)
|
||||
{
|
||||
// bound field of view
|
||||
scr_fov = bound (0, scr_fov, 170);
|
||||
SCR_SetFOV (scr_fov);
|
||||
if (!scr_fisheye) {
|
||||
// bound field of view
|
||||
scr_fov = bound (0, scr_fov, 170);
|
||||
SCR_SetFOV (scr_fov);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
scr_fisheye_f (void *data, const cvar_t *cvar)
|
||||
{
|
||||
if (scr_fisheye)
|
||||
Cvar_Set ("fov", "90");
|
||||
SCR_SetFOV (scr_fisheye ? 90 : scr_fov);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue