Fixed maxhealth probably
This commit is contained in:
@@ -23,7 +23,7 @@ void HealthHUDSystem::Update(double dt)
|
|||||||
|
|
||||||
if (entity.HasComponent("Text")) {
|
if (entity.HasComponent("Text")) {
|
||||||
double health = (const double&)entityIDParent["Health"]["Health"];
|
double health = (const double&)entityIDParent["Health"]["Health"];
|
||||||
double maxHealth = (const double&)entityIDParent["Health"]["Health"];
|
double maxHealth = (const double&)entityIDParent["Health"]["MaxHealth"];
|
||||||
std::string s = "";
|
std::string s = "";
|
||||||
s = s + std::to_string((int)health);
|
s = s + std::to_string((int)health);
|
||||||
s = s + "/";
|
s = s + "/";
|
||||||
|
|||||||
Reference in New Issue
Block a user