techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rw-r--r--app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.c b/app.c
index 18f0d9c..851b179 100644
--- a/app.c
+++ b/app.c
@@ -49,16 +49,16 @@ app_exit(void) {
static void
app_loop(void) {
app.run = !WindowShouldClose();
+ entity_system_update();
/* this is some hypothetical bullshit, probably will change */
- if (app.mode != APP_MODE_PLAY) {
+ if (app.mode == APP_MODE_EDIT) {
editor_update();
}
physics_update();
res_update();
env_update();
- entity_system_update();
BeginDrawing();
ClearBackground(RAYWHITE);