- [FIX] El modul arounders no s'inicialitzava
- [FIX] Quan reintentaves un mapa, no se recarregava
This commit is contained in:
@@ -65,6 +65,7 @@ namespace gamestate
|
|||||||
play::aigua = draw::loadSurface("aigua.gif");
|
play::aigua = draw::loadSurface("aigua.gif");
|
||||||
play::faded = draw::createSurface(320, 200);
|
play::faded = draw::createSurface(320, 200);
|
||||||
|
|
||||||
|
arounders::init();
|
||||||
// [TODO] Crear el primer Arounder
|
// [TODO] Crear el primer Arounder
|
||||||
// REALMENT NO. PREFEREIXC QUE PASEN UNS SEGONS ABANS QUE ARRIBE EL PRIMER
|
// REALMENT NO. PREFEREIXC QUE PASEN UNS SEGONS ABANS QUE ARRIBE EL PRIMER
|
||||||
// mapa::arounders::eixits++;
|
// mapa::arounders::eixits++;
|
||||||
@@ -256,7 +257,10 @@ namespace gamestate
|
|||||||
if (play::exit) {
|
if (play::exit) {
|
||||||
if (!draw::isfading()) {
|
if (!draw::isfading()) {
|
||||||
play::finalize();
|
play::finalize();
|
||||||
if (exit==1) gamestate::play::init();
|
if (exit==1) {
|
||||||
|
mapa::carregar();
|
||||||
|
gamestate::play::init();
|
||||||
|
}
|
||||||
if (exit==2) gamestate::menu::init();
|
if (exit==2) gamestate::menu::init();
|
||||||
}
|
}
|
||||||
draw::render();
|
draw::render();
|
||||||
|
|||||||
Reference in New Issue
Block a user