From 6fba322a1bd09b16ea323a5dd7851b85c0bf42e0 Mon Sep 17 00:00:00 2001 From: zturtleman Date: Thu, 6 Dec 2012 07:22:16 +0000 Subject: [PATCH] Restore car fov y in menu (broke it in last revision). --- engine/code/q3_ui/ui_players.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/code/q3_ui/ui_players.c b/engine/code/q3_ui/ui_players.c index 3676c029..bdc1f4ee 100644 --- a/engine/code/q3_ui/ui_players.c +++ b/engine/code/q3_ui/ui_players.c @@ -1126,9 +1126,10 @@ void UI_DrawPlayer( float x, float y, float w, float h, playerInfo_t *pi, int ti // STONELANCE refdef.fov_x = 90; + xx = refdef.width / tan( refdef.fov_x / 360 * M_PI ); // refdef.fov_x = (int)((float)refdef.width / uis.xscale / 640.0f * 90.0f); +// xx = refdef.width / uis.xscale / tan( refdef.fov_x / 360 * M_PI ); // END - xx = refdef.width / uis.xscale / tan( refdef.fov_x / 360 * M_PI ); refdef.fov_y = atan2( refdef.height, xx ); refdef.fov_y *= ( 360 / M_PI );