mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 17:28:00 +03:00
Init bar values correctly
This commit is contained in:
parent
aa9a7a394a
commit
2b417e5745
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ namespace TEN::Hud
|
||||||
{
|
{
|
||||||
void StatusBar::Initialize(float value)
|
void StatusBar::Initialize(float value)
|
||||||
{
|
{
|
||||||
Value = std::clamp(value, 0.0f, 1.0f);
|
Value =
|
||||||
|
TargetValue = std::clamp(value, 0.0f, 1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StatusBar::Update(float value)
|
void StatusBar::Update(float value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue