2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

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

This commit is contained in:
Alibek Omarov 2022-09-19 21:35:26 +03:00 committed by GitHub
parent 1394637ce8
commit 63ce6eda31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 )