We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd4657 commit 1928778Copy full SHA for 1928778
Client/game_sa/CHudSA.cpp
@@ -641,7 +641,7 @@ void CHudSA::RenderHealthBar(int x, int y)
641
642
// Calc bar width depending on MAX_HEALTH stat
643
// We want to maintain the proportions of the bar and its width after changing MAX_HEALTH from 176 to 200
644
- static const float baseWidth = barWidth * 100.0f / 176.0f; // 176 is default STAT_10 value
+ const float baseWidth = barWidth * 100.0f / 176.0f; // 176 is default STAT_10 value
645
float totalWidth = baseWidth + (((barWidth - baseWidth) / 100.0f) * (maxHealth - 100.0f));
646
647
float posX = useCustomPosition ? componentProperties.hpBar.placement.customX : (barWidth - totalWidth + x);
0 commit comments