diff --git a/src/game_api/level_api.cpp b/src/game_api/level_api.cpp index 2ee4eed14..1de7acfa0 100644 --- a/src/game_api/level_api.cpp +++ b/src/game_api/level_api.cpp @@ -855,7 +855,7 @@ void load_screen(StateMemory* state, size_t param_2, size_t param_3) if (pre_event(ON::PRE_LOAD_SCREEN)) return; g_load_screen_trampoline(state, param_2, param_3); - post_event(ON::POST_LOAD_SCREEN); + post_load_screen(); } using UnloadLayerFun = void(Layer*); @@ -2371,5 +2371,5 @@ void do_load_screen() if (pre_event(ON::PRE_LOAD_SCREEN)) return; load_screen_fun(state, 0, 0); - post_event(ON::POST_LOAD_SCREEN); + post_load_screen(); } diff --git a/src/game_api/script/events.hpp b/src/game_api/script/events.hpp index c6ec5047c..795a5ae25 100644 --- a/src/game_api/script/events.hpp +++ b/src/game_api/script/events.hpp @@ -25,6 +25,7 @@ bool pre_init_layer(LAYER layer); bool pre_unload_level(); bool pre_unload_layer(LAYER layer); +void post_load_screen(); void post_init_layer(LAYER layer); void post_unload_layer(LAYER layer); void post_room_generation();