Skip to content

Commit 3eaa1f4

Browse files
committed
Ensure boxgap doesn't get bigger (for active slot)
1 parent 007d946 commit 3eaa1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/client/tf/tf_hud_weaponselection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void CHudWeaponSelection::ComputeSlotLayout( SlotLayout_t *rSlot, int nActiveSlo
504504
for (int i = 0; i < m_iMaxSlots; i++)
505505
{
506506
rSlot[i].y = ypos;
507-
ypos += rSlot[i].tall + (m_flBoxGap * rSlot[i].tall / m_flSmallBoxTall);
507+
ypos += rSlot[i].tall + MIN(m_flBoxGap, m_flBoxGap * rSlot[i].tall / m_flSmallBoxTall);
508508
}
509509
#else
510510
rSlot[i].y = ypos;

0 commit comments

Comments
 (0)