Make ADS values a vec3

This commit is contained in:
Steam Deck User 2023-02-03 20:25:41 -05:00
parent cd3b08018e
commit 0f6f274e29

View file

@ -690,7 +690,7 @@ static float OldYawTheta;
static float OldPitchTheta; static float OldPitchTheta;
static vec2_t cADSOfs; static vec3_t cADSOfs;
void CalcGunAngle (void) void CalcGunAngle (void)
{ {
@ -1121,7 +1121,7 @@ void V_CalcRefdef (void)
//============================================================ Engine-Side Iron Sights ============================================================ //============================================================ Engine-Side Iron Sights ============================================================
AngleVectors (r_refdef.viewangles, temp_forward, temp_right, temp_up); AngleVectors (r_refdef.viewangles, temp_forward, temp_right, temp_up);
vec2_t ADSOffset; vec3_t ADSOffset;
if(cl.stats[STAT_ZOOM] == 1 || cl.stats[STAT_ZOOM] == 2) if(cl.stats[STAT_ZOOM] == 1 || cl.stats[STAT_ZOOM] == 2)
{ {
ADSOffset[0] = sv_player->v.ADS_Offset[0]; ADSOffset[0] = sv_player->v.ADS_Offset[0];