aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/BattleScript.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-09 14:54:51 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-09 14:54:51 +0100
commitb091cb7910fa82e9fb00abdb163d277ba574f804 (patch)
treec82defc3d95ee95144207285efd4be7ae75c97d8 /game/enemy/BattleScript.cpp
parent843d27e8f68bf3d3d39baedb7a5c53154160afd7 (diff)
make format
Diffstat (limited to 'game/enemy/BattleScript.cpp')
-rw-r--r--game/enemy/BattleScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/enemy/BattleScript.cpp b/game/enemy/BattleScript.cpp
index 2d1e143..cfffcb3 100644
--- a/game/enemy/BattleScript.cpp
+++ b/game/enemy/BattleScript.cpp
@@ -40,10 +40,10 @@ void BattleScript::spawn_enemies(int amount) {
RefVector<BehaviorScript> enemy_scripts
= this->get_components_by_tag<BehaviorScript>("enemy");
std::uniform_real_distribution<float> dist(70, 150);
-
+
for (int i = 0; i < amount; i++) {
BehaviorScript & script = enemy_scripts[i];
- if(script.active == true) continue;
+ if (script.active == true) continue;
script.active = true;
this->queue_event<SpawnEnemyEvent>(
SpawnEnemyEvent {