- [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

@@ -34,3 +34,4 @@ PRINT 79 29 3 'ELS MEUS MAPES US ADORMIRE'
PRINT 79 39 3 'AMB UNA PRACTICA DE TAL!!'
ESPERAR 2000
FADEOUT
END

View File

@@ -11,3 +11,4 @@ PRINT 9 19 1 'ARA TINDREU QUE SUPERAR'
PRINT 9 29 1 '5 MAPES AMB COST EXPONENCIAL!'
ESPERAR 3000
FADEOUT
END

View File

@@ -14,3 +14,4 @@ ESPERAR 1000
PRINT 159 79 1 'SUPEREU ELS MEUS MAPES!'
ESPERAR 2000
FADEOUT
END

View File

@@ -15,3 +15,4 @@ PRINT 29 29 1 'QUE NO ELS SUPERA'
PRINT 29 39 1 'QUASI QUASI NINGU'
ESPERAR 3000
FADEOUT
END

View File

@@ -15,3 +15,4 @@ PRINT 29 29 1 'O ME COMPRAIS UNA PRECIOSA'
PRINT 29 39 1 'CHAQUETA DE CUERO O NADA DE NADA'
ESPERAR 3000
FADEOUT
END

View File

@@ -3,3 +3,4 @@ PRINT 159 19 0 'HI HA ALGU MES A QUI'
PRINT 159 29 0 'ET TENS QUE ENFRONTAR!'
ESPERAR 3000
FADEOUT
END

View File

@@ -59,3 +59,4 @@ SHOW 'SEQ74.GIF'
PRINT 169 129 0 'FINS LA PROXIMA.'
ESPERAR 5000
FADEOUT
END

View File

@@ -46,3 +46,4 @@ PRINT 109 9 1 '"LA CAGAMOL!!!'
PRINT 109 16 1 'AHORAL QUE HAGOL!"'
ESPERAR 5000
FADEOUT
END

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