- disable implicit conversions from float to TAngle
This commit is contained in:
parent
8468f712e0
commit
f0fbdba593
66 changed files with 425 additions and 374 deletions
|
|
@ -895,13 +895,13 @@ void D_Display ()
|
|||
auto &vp = r_viewpoint;
|
||||
if (viewactive)
|
||||
{
|
||||
DAngle fov = 90.f;
|
||||
DAngle fov = DAngle::fromDeg(90.);
|
||||
AActor *cam = players[consoleplayer].camera;
|
||||
if (cam)
|
||||
{
|
||||
if (cam->player)
|
||||
fov = cam->player->FOV;
|
||||
else fov = cam->CameraFOV;
|
||||
fov = DAngle::fromDeg(cam->player->FOV);
|
||||
else fov = DAngle::fromDeg(cam->CameraFOV);
|
||||
}
|
||||
R_SetFOV(vp, fov);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue