mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-24 18:59:26 +01: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
|
||||
{
|
||||
float pitch = camAngles[0];
|
||||
float pitch = pparams->viewangles[0];
|
||||
|
||||
// Normalize angles
|
||||
if( pitch > 180.0f )
|
||||
|
Loading…
Reference in New Issue
Block a user