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 );