From 136bc86f6818c8b9c6c9bf730c578ee8926098e2 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Fri, 20 Oct 2023 20:07:57 +0200 Subject: [PATCH] - [FIX] El modul arounders no s'inicialitzava - [FIX] Quan reintentaves un mapa, no se recarregava --- source/gamestate_play.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/gamestate_play.cpp b/source/gamestate_play.cpp index c7efe9c..cd7faf8 100644 --- a/source/gamestate_play.cpp +++ b/source/gamestate_play.cpp @@ -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();