mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-13 23:40:55 +00:00
Enable r_viewmodel_fov for cl.viewent2
This commit is contained in:
parent
dc2cbdf1be
commit
cdca881579
1 changed files with 1 additions and 1 deletions
|
@ -770,7 +770,7 @@ void R_DrawAliasModel (entity_t *e)
|
|||
} else {
|
||||
|
||||
// Special handling of view model to keep FOV from altering look. Pretty good. Not perfect but rather close.
|
||||
if (e == &cl.viewent && scr_fov_viewmodel.value) {
|
||||
if ((e == &cl.viewent || e == &cl.viewent2) && scr_fov_viewmodel.value) {
|
||||
float scale = 1.0f / tan (DEG2RAD (scr_fov.value / 2.0f)) * scr_fov_viewmodel.value / 90.0f;
|
||||
glTranslatef (paliashdr->scale_origin[0] * scale, paliashdr->scale_origin[1], paliashdr->scale_origin[2]);
|
||||
glScalef (paliashdr->scale[0] * scale, paliashdr->scale[1], paliashdr->scale[2]);
|
||||
|
|
Loading…
Reference in a new issue