diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-03 18:39:46 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:16:22 +0200 |
| commit | ba91cb1393274072721e1c31db0c7f73dc9c9db7 (patch) | |
| tree | e457bb2ddbd16187c6e2fc34988d09b5afabb659 /editor | |
| parent | a549fdf835a8548e09084156137cb26e869e8901 (diff) | |
expose script init status
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/update.cpp | 7 |
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()); |
