- [FIX] Quan se pillen les sequències del data.jf2 peta per que no hi ha EOF

This commit is contained in:
2023-10-22 13:30:49 +02:00
parent e30bbc5f8c
commit 3a0cba54ba
9 changed files with 18 additions and 0 deletions

View File

@@ -107,6 +107,16 @@ namespace gamestate
} else if (command=="FADEOUTMUSIC") {
draw::fadeout();
audio::fadeoutMusic();
} else if (command=="END") {
fclose(sequence_file);
const int fase = game::getConfig("fase");
if ( fase == -1 || fase == 30) {
gamestate::menu::init();
} else {
gamestate::prefase::init();
}
return true;
}
}
}