diff --git a/src/ECS/Systems/Systems.cpp b/src/ECS/Systems/Systems.cpp index 2e408bf2..69abfe29 100644 --- a/src/ECS/Systems/Systems.cpp +++ b/src/ECS/Systems/Systems.cpp @@ -49,8 +49,7 @@ namespace Systems { Registry::components arrHealth = Registry::getInstance().getComponents(); - if (arrDamage.exist(firstEntity) - && arrDamage[firstEntity].damage > 0) { + if (arrDamage.exist(firstEntity) && arrDamage[firstEntity].damage > 0) { if (arrHealth.exist(secondEntity)) { arrHealth[secondEntity].hp -= arrDamage[firstEntity].damage; } @@ -126,8 +125,8 @@ namespace Systems { const Raylib::Vector2 textPos = {20, 50}; constexpr int playerData = 10; const Types::Position playerPos = {50, 50}; - constexpr int playerDamage = 1; - constexpr int enemyDamage = 1; + constexpr int playerDamage = 1; + constexpr int enemyDamage = 1; constexpr int playerHealth = 5; constexpr int playerHealth2 = 5; constexpr float musicVolume = 0.02F;