- removed some references to r_viewpoint in game code
Mainly to reduce number of search results.
This commit is contained in:
parent
86975a71e8
commit
548ccb1df4
6 changed files with 32 additions and 26 deletions
|
|
@ -679,6 +679,7 @@ void D_Display ()
|
|||
players[consoleplayer].camera = players[consoleplayer].mo;
|
||||
}
|
||||
|
||||
auto &vp = r_viewpoint;
|
||||
if (viewactive)
|
||||
{
|
||||
DAngle fov = 90.f;
|
||||
|
|
@ -689,7 +690,7 @@ void D_Display ()
|
|||
fov = cam->player->FOV;
|
||||
else fov = cam->CameraFOV;
|
||||
}
|
||||
R_SetFOV(r_viewpoint, fov);
|
||||
R_SetFOV(vp, fov);
|
||||
}
|
||||
|
||||
// [RH] change the screen mode if needed
|
||||
|
|
@ -718,7 +719,7 @@ void D_Display ()
|
|||
// change the view size if needed
|
||||
if (setsizeneeded && StatusBar != NULL)
|
||||
{
|
||||
R_ExecuteSetViewSize (r_viewpoint, r_viewwindow);
|
||||
R_ExecuteSetViewSize (vp, r_viewwindow);
|
||||
}
|
||||
setmodeneeded = false;
|
||||
|
||||
|
|
@ -817,7 +818,7 @@ void D_Display ()
|
|||
{
|
||||
StatusBar->DrawCrosshair();
|
||||
}
|
||||
StatusBar->CallDraw (HUD_AltHud, r_viewpoint.TicFrac);
|
||||
StatusBar->CallDraw (HUD_AltHud, vp.TicFrac);
|
||||
StatusBar->DrawTopStuff (HUD_AltHud);
|
||||
}
|
||||
else
|
||||
|
|
@ -825,13 +826,13 @@ void D_Display ()
|
|||
{
|
||||
EHudState state = DrawFSHUD ? HUD_Fullscreen : HUD_None;
|
||||
StatusBar->DrawBottomStuff (state);
|
||||
StatusBar->CallDraw (state, r_viewpoint.TicFrac);
|
||||
StatusBar->CallDraw (state, vp.TicFrac);
|
||||
StatusBar->DrawTopStuff (state);
|
||||
}
|
||||
else
|
||||
{
|
||||
StatusBar->DrawBottomStuff (HUD_StatusBar);
|
||||
StatusBar->CallDraw (HUD_StatusBar, r_viewpoint.TicFrac);
|
||||
StatusBar->CallDraw (HUD_StatusBar, vp.TicFrac);
|
||||
StatusBar->DrawTopStuff (HUD_StatusBar);
|
||||
}
|
||||
//stb.Unclock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue