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

This commit is contained in:
JailDoctor committed 2023-10-22 13:30:49 +02:00
1 parent e30bbc5f8c
commit 3a0cba54ba
9 files changed
+18

No files matched your search

+10
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;
}
}
}