1 parent 81a1207 commit ea7387eCopy full SHA for ea7387e
1 file changed
src/game/systems/enemy-health-bar.hpp
@@ -99,9 +99,8 @@ namespace gameplay {
99
float distance = glm::distance(enemyPosition, cameraPos);
100
101
bool visibleWhenDamaged = health->damageRevealTimer > 0.0f;
102
- bool visibleWhenClose = distance <= 8.0f;
+ bool visibleWhenClose = distance <= config.maxDistance;
103
104
- if (!visibleWhenDamaged && distance > config.maxDistance) continue;
105
if (!(visibleWhenDamaged || visibleWhenClose)) continue;
106
107
ColliderComponent* collider = entity->getComponent<ColliderComponent>();
0 commit comments