summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 897d305..db81e47 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -193,6 +193,7 @@ void Game_Tick(double delta) {
* ECS_Tick() gets called first because it updates the public
* `EntitiesToBeRemoved` for all other ticks to use.
*/
+ ECS_Tick_Early(delta);
if (shouldCreateEntityType) {
assert(entityTypeToCreate != nullptr);
assert(entityTypeToCreate != CAFE_BABE(EntityType));
@@ -212,8 +213,7 @@ void Game_Tick(double delta) {
EntityHandle newEntity = ECS_CreateEntity();
ECS_CreateInstance(newEntity, createInfo.entityTypeEntityHandle);
}
-
- ECS_Tick(delta);
+ ECS_Tick_Late(delta);
}
void RecordImGuiEditorWrapper() {