Fix Viewmodel FOV not applying to viewent2

This commit is contained in:
cypress 2023-11-05 09:59:44 -05:00 committed by GitHub
parent 598136d69b
commit bf3a5f8355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1990,7 +1990,7 @@ void R_DrawAliasModel (entity_t *e)
// Special handling of view model to keep FOV from altering look. Pretty good. Not perfect but rather close. // 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; float scale = 1.0f / tan (DEG2RAD (scr_fov.value / 2.0f)) * scr_fov_viewmodel.value / 90.0f;
const ScePspFVector3 translation = { const ScePspFVector3 translation = {