mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Use a fallback FOV for the R_SetFOV call.
This commit is contained in:
parent
42db31b816
commit
30966ef951
1 changed files with 13 additions and 2 deletions
|
@ -684,8 +684,19 @@ void D_Display ()
|
|||
|
||||
if (viewactive)
|
||||
{
|
||||
R_SetFOV (r_viewpoint, players[consoleplayer].camera && players[consoleplayer].camera->player ?
|
||||
players[consoleplayer].camera->player->FOV : players[consoleplayer].camera->CameraFOV);
|
||||
DAngle fov = 90.f;
|
||||
if (players[consoleplayer].camera != nullptr)
|
||||
{
|
||||
if (players[consoleplayer].camera && players[consoleplayer].camera->player)
|
||||
{
|
||||
fov = players[consoleplayer].camera->player->FOV;
|
||||
}
|
||||
else
|
||||
{
|
||||
fov = players[consoleplayer].camera->CameraFOV;
|
||||
}
|
||||
}
|
||||
R_SetFOV(r_viewpoint, fov);
|
||||
}
|
||||
|
||||
// [RH] change the screen mode if needed
|
||||
|
|
Loading…
Reference in a new issue