summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/update.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index e461c9b4..7fdcd77e 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -310,10 +310,15 @@ auto app::get_z_bounds() -> z_bounds
void app::update(Ns dt)
{
- M->world().collect(true);
+ auto& w = M->world();
+ w.collect(true);
update_cursor_tile(cursor.pixel);
tests_pre_update(dt);
apply_commands(*keys_);
+ { auto status = w.script_status();
+ fm_assert(status.initialized);
+ fm_assert(!status.finalized);
+ }
update_character(dt);
update_world(dt);
do_camera(dt, *keys_, get_key_modifiers());