aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/BattleScript.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:57:05 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:57:05 +0100
commit1ec7e724fcace1274473dfcae91022cc1c930baa (patch)
tree1508e8cd74588f388093dae81432fa66ecd436f2 /game/enemy/BattleScript.cpp
parentce83df284173cfb4f6e430bf3ed8080ea21204d7 (diff)
working scheduler and enemies and rest
Diffstat (limited to 'game/enemy/BattleScript.cpp')
-rw-r--r--game/enemy/BattleScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/enemy/BattleScript.cpp b/game/enemy/BattleScript.cpp
index dde8da1..4260c42 100644
--- a/game/enemy/BattleScript.cpp
+++ b/game/enemy/BattleScript.cpp
@@ -39,7 +39,7 @@ bool BattleScript::create_battle(const BattleStartEvent & e) {
for (int i = 0; i < e.num_enemies; i++) {
BehaviorScript & script = enemy_scripts[i];
script.active = true;
- this->trigger_event<SpawnEnemyEvent>(
+ this->queue_event<SpawnEnemyEvent>(
SpawnEnemyEvent {
.speed = dist(engine),
.column = i,