From eb6d28380697994964012f26d7ebabc8ad7a04b0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 7 Mar 2009 05:22:17 +0000 Subject: [PATCH] Does that get past the msvc2008 bug yet? git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3140 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_screen.c b/engine/client/cl_screen.c index 647ac9bb7..cd37fae42 100644 --- a/engine/client/cl_screen.c +++ b/engine/client/cl_screen.c @@ -905,7 +905,8 @@ float CalcFov (float fov_x, float width, float height) Sys_Error ("Bad fov: %f", fov_x); x = fov_x/360*M_PI; - x = width/tan(x); + x = tan(x); + x = width/x; a = atan (height/x);