fix: do load_level_binary w/o world switch & only when needed

This commit is contained in:
KikooDX 2021-08-08 22:46:51 +02:00
parent 670c96cfeb
commit c81d72aab0
1 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,7 @@
} while (0);
#define LOAD_LEVEL() \
do { \
gint_world_switch(GINT_CALL(level_load_binary)); \
level_load_binary(); \
if (fatal_error == -1) \
PANIC(fatal_error_msg); \
particles_init(); \
@ -95,7 +95,7 @@ main(void)
/* load level */
level_id = 0;
gint_world_switch(GINT_CALL(level_load_binary));
level_load_binary();
if (fatal_error == -1)
PANIC(fatal_error_msg);
/* timer setup */
@ -218,8 +218,9 @@ main(void)
game_state = PackDone;
/* level_pack_beaten =
level_id / 4; */
} else {
LOAD_LEVEL();
}
LOAD_LEVEL();
transition = transition_init(
transition.speed,
transition.color,