mirror of https://git.sr.ht/~kikoodx/momento
fix: do load_level_binary w/o world switch & only when needed
This commit is contained in:
parent
670c96cfeb
commit
c81d72aab0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue