- make FieldOfView a real angle and remove all uses of finetangent.

This commit is contained in:
Christoph Oelckers 2016-04-28 13:59:06 +02:00
commit 027b8d29b8
8 changed files with 19 additions and 62 deletions

View file

@ -50,8 +50,6 @@ void R_SetupColormap(player_t *);
void R_SetupFreelook();
void R_InitRenderer();
extern float LastFOV;
//==========================================================================
//
// DCanvas :: Init
@ -272,8 +270,8 @@ void FSoftwareRenderer::RenderTextureView (FCanvasTexture *tex, AActor *viewpoin
unsigned char *savecolormap = fixedcolormap;
FSpecialColormap *savecm = realfixedcolormap;
float savedfov = LastFOV;
R_SetFOV ((float)fov);
DAngle savedfov = FieldOfView;
R_SetFOV ((double)fov);
R_RenderViewToCanvas (viewpoint, Canvas, 0, 0, tex->GetWidth(), tex->GetHeight(), tex->bFirstUpdate);
R_SetFOV (savedfov);
if (Pixels == Canvas->GetBuffer())