Browse Source

client: view: fix reading from uninitialized variable when setting model angles from camera angles (#329)

fix-cwd-path
Alibek Omarov 2 years ago committed by GitHub
parent
commit
63ce6eda31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cl_dll/view.cpp

2
cl_dll/view.cpp

@ -735,7 +735,7 @@ void V_CalcNormalRefdef( struct ref_params_s *pparams )
// Apply this at all times // Apply this at all times
{ {
float pitch = camAngles[0]; float pitch = pparams->viewangles[0];
// Normalize angles // Normalize angles
if( pitch > 180.0f ) if( pitch > 180.0f )

Loading…
Cancel
Save