Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply weapon or device fire params, not both
  • Loading branch information
ProfLander committed Jun 18, 2025
commit 925446e5a250683442d53c0b4879cc8f3510fe58
6 changes: 3 additions & 3 deletions src/xrGame/Actor_Weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ void CActor::g_fireParams(const CHudItem* pHudItem, Fvector& fire_pos, Fvector&
SPickParam& pp = GetPick();

attachable_hud_item* item_0 = g_player_hud->attached_item(0);
attachable_hud_item* item_1 = g_player_hud->attached_item(1);

if (item_0)
item_0->m_parent_hud_item->g_fireParams(pp);

attachable_hud_item* item_1 = g_player_hud->attached_item(1);
if (item_1)
else if (item_1)
item_1->m_parent_hud_item->g_fireParams(pp);

fire_pos = pp.defs.start;
Expand Down