Skip to content

Commit 1928778

Browse files
FileEXTheNormalnij
andauthored
Update Client/game_sa/CHudSA.cpp
Co-authored-by: Uladzislau Nikalayevich <[email protected]>
1 parent 5dd4657 commit 1928778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/game_sa/CHudSA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void CHudSA::RenderHealthBar(int x, int y)
641641

642642
// Calc bar width depending on MAX_HEALTH stat
643643
// 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
644+
const float baseWidth = barWidth * 100.0f / 176.0f; // 176 is default STAT_10 value
645645
float totalWidth = baseWidth + (((barWidth - baseWidth) / 100.0f) * (maxHealth - 100.0f));
646646

647647
float posX = useCustomPosition ? componentProperties.hpBar.placement.customX : (barWidth - totalWidth + x);

0 commit comments

Comments
 (0)