Skip to content

Commit

Permalink
* UPD: [xrGame] PR review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yohjimane committed Jun 2, 2024
1 parent 58f8975 commit 7b1ef30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/xrGame/Weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,8 @@ void CWeapon::UpdateHudAdditonal(Fmatrix& trans)
if (!pActor)
return;

if ((IsZoomed() && m_zoom_params.m_fZoomRotationFactor <= 1.f) ||
(!IsZoomed() && m_zoom_params.m_fZoomRotationFactor > 0.f))
{
u8 idx = GetCurrentHudOffsetIdx();
// if(idx==0) return;
Expand Down
22 changes: 11 additions & 11 deletions src/xrGame/player_hud_tune.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ class CHudTuner final : public xray::editor::ide_tool
};
xr_map<hud_adj_mode_keys, pcstr> hud_adj_modes =
{
{HUD_POS, "Hud Position (Default)"},
{HUD_ROT, "Hud Rotation (Default)"},
{HUD_POS_AIM, "Hud Position (Aiming)"},
{HUD_ROT_AIM, "Hud Rotation (Aiming)"},
{HUD_POS_GL, "Hud Position (GL)"},
{HUD_ROT_GL, "Hud Rotation (GL)"},
{ITEM_POS, "Item Position"},
{ITEM_ROT, "Item Rotation"},
{FIRE_POINT, "Fire Point"},
{FIRE_POINT_2, "Fire Point 2"},
{SHELL_POINT, "Shell Point"},
{ HUD_POS, "Hud Position (Default)" },
{ HUD_ROT, "Hud Rotation (Default)" },
{ HUD_POS_AIM, "Hud Position (Aiming)" },
{ HUD_ROT_AIM, "Hud Rotation (Aiming)" },
{ HUD_POS_GL, "Hud Position (GL)" },
{ HUD_ROT_GL, "Hud Rotation (GL)" },
{ ITEM_POS, "Item Position" },
{ ITEM_ROT, "Item Rotation" },
{ FIRE_POINT, "Fire Point" },
{ FIRE_POINT_2, "Fire Point 2" },
{ SHELL_POINT, "Shell Point" },
};

bool paused{};
Expand Down

0 comments on commit 7b1ef30

Please sign in to comment.