- make viewx etc. global.
- a few minor optimizations.
This commit is contained in:
parent
ccfb2ac233
commit
bb13590e07
8 changed files with 22 additions and 29 deletions
|
|
@ -149,6 +149,10 @@ int FieldOfView = 2048; // Fineangles in the SCREENWIDTH wide window
|
|||
|
||||
FCanvasTextureInfo *FCanvasTextureInfo::List;
|
||||
|
||||
fixed_t viewx, viewy, viewz;
|
||||
angle_t viewangle;
|
||||
int viewpitch;
|
||||
|
||||
|
||||
// CODE --------------------------------------------------------------------
|
||||
static void R_Shutdown ();
|
||||
|
|
@ -1091,6 +1095,12 @@ void R_SetupFrame (AActor *actor)
|
|||
}
|
||||
}
|
||||
|
||||
viewx = FLOAT2FIXED(ViewPos.X);
|
||||
viewy = FLOAT2FIXED(ViewPos.Y);
|
||||
viewz = FLOAT2FIXED(ViewPos.Z);
|
||||
viewangle = ViewAngle.BAMs();
|
||||
viewpitch = ViewPitch.BAMs();
|
||||
|
||||
Renderer->CopyStackedViewParameters();
|
||||
Renderer->SetupFrame(player);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue