mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 17:07:55 +00:00
client: view: fix reading from uninitialized variable when setting model angles from camera angles (#329)
This commit is contained in:
parent
1394637ce8
commit
63ce6eda31
@ -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…
Reference in New Issue
Block a user