Arrange quick save icons horizontally

This commit is contained in:
Simon 2023-04-11 21:00:09 +01:00
parent d3dcac8f9d
commit 20f8fff3fe
2 changed files with 2 additions and 2 deletions

View file

@ -3227,7 +3227,7 @@ void CG_DrawItemSelector( void )
VectorClear(angles); VectorClear(angles);
angles[YAW] = wheelAngles[YAW]; angles[YAW] = wheelAngles[YAW];
angles[PITCH] = wheelAngles[PITCH]; angles[PITCH] = wheelAngles[PITCH];
angles[ROLL] = angles[ROLL] = (cg.itemSelectorType == ST_QUICK_SAVE ? 270.0f : 0.0f) +
(float)(360 / (count - ((cg.itemSelectorType == ST_WEAPON && !vr->in_vehicle) ? 1 : 0))) * index; (float)(360 / (count - ((cg.itemSelectorType == ST_WEAPON && !vr->in_vehicle) ? 1 : 0))) * index;
vec3_t forward, up; vec3_t forward, up;
AngleVectors(angles, forward, NULL, up); AngleVectors(angles, forward, NULL, up);

View file

@ -3079,7 +3079,7 @@ void CG_DrawItemSelector( void )
VectorClear(angles); VectorClear(angles);
angles[YAW] = wheelAngles[YAW]; angles[YAW] = wheelAngles[YAW];
angles[PITCH] = wheelAngles[PITCH]; angles[PITCH] = wheelAngles[PITCH];
angles[ROLL] = angles[ROLL] = (cg.itemSelectorType == ST_QUICK_SAVE ? 270.0f : 0.0f) +
(float)(360 / (count - ((cg.itemSelectorType == ST_WEAPON && !vr->in_vehicle) ? 1 : 0))) * index; (float)(360 / (count - ((cg.itemSelectorType == ST_WEAPON && !vr->in_vehicle) ? 1 : 0))) * index;
vec3_t forward, up; vec3_t forward, up;
AngleVectors(angles, forward, NULL, up); AngleVectors(angles, forward, NULL, up);