mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-01-19 08:01:30 +00:00
Restore car fov y in menu (broke it in last revision).
This commit is contained in:
parent
3b4f4cdfa9
commit
6fba322a1b
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue