- [FIX] El modul arounders no s'inicialitzava

- [FIX] Quan reintentaves un mapa, no se recarregava
This commit is contained in:
2023-10-20 20:07:57 +02:00
parent 61b429eb8b
commit 136bc86f68

View File

@@ -65,6 +65,7 @@ namespace gamestate
play::aigua = draw::loadSurface("aigua.gif");
play::faded = draw::createSurface(320, 200);
arounders::init();
// [TODO] Crear el primer Arounder
// REALMENT NO. PREFEREIXC QUE PASEN UNS SEGONS ABANS QUE ARRIBE EL PRIMER
// mapa::arounders::eixits++;
@@ -256,7 +257,10 @@ namespace gamestate
if (play::exit) {
if (!draw::isfading()) {
play::finalize();
if (exit==1) gamestate::play::init();
if (exit==1) {
mapa::carregar();
gamestate::play::init();
}
if (exit==2) gamestate::menu::init();
}
draw::render();