mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-06-19 01:17:03 -07:00
Fixed better select not reloading
This commit is contained in:
@@ -511,16 +511,19 @@ static void Init() {
|
||||
REGISTER_LISTENER(LevelScriptCallLoop, EVENT_PRIORITY_NORMAL, [](IEvent* event) {
|
||||
LevelScriptCallLoop* ev = (LevelScriptCallLoop*) event;
|
||||
|
||||
self.loaded = false;
|
||||
|
||||
if(*ev->func == lvl_intro_update) {
|
||||
if(*ev->arg == LVL_INTRO_LEVEL_SELECT) {
|
||||
self.loaded = true;
|
||||
}
|
||||
*ev->func = BetterLevelSelect_UpdateMenu;
|
||||
return;
|
||||
}
|
||||
|
||||
self.loaded = false;
|
||||
|
||||
if(*ev->func == lvl_init_or_update) {
|
||||
*ev->func = BetterLevelSelect_UpdateArea;
|
||||
self.loaded = true;
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user