diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 13:52:22 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 13:52:22 +0100 |
commit | 1413beea3b506b15b9f0080cec29c745d1ef88da (patch) | |
tree | f09efac3543adb16ea21b1d04d2c2cd4fb181d69 /game/enemy/EnemyScript.cpp | |
parent | 1e25ce23534c1dcc7bebfc9fe33c1b587f15643a (diff) |
pooling fix
Diffstat (limited to 'game/enemy/EnemyScript.cpp')
-rw-r--r-- | game/enemy/EnemyScript.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/enemy/EnemyScript.cpp b/game/enemy/EnemyScript.cpp index 0494bbc..e87a58e 100644 --- a/game/enemy/EnemyScript.cpp +++ b/game/enemy/EnemyScript.cpp @@ -75,6 +75,7 @@ bool EnemyScript::spawn_enemy(const SpawnEnemyEvent& e){ ai_component.path.clear(); ai_component.make_oval_path(10, 10, vec2{x_value,random_height}, 1.5708, true); ai_component.active = true; + this->last_fired = std::chrono::steady_clock::now(); return true; } |