Restore car fov y in menu (broke it in last revision).

This commit is contained in:
zturtleman 2012-12-06 07:22:16 +00:00
parent 3b4f4cdfa9
commit 6fba322a1b

View file

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