From 5dcf2e582a6cf016eb876e0c34193e7283f78411 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Fri, 20 Oct 2023 20:06:25 +0200 Subject: [PATCH] - [FIX] Algunes variables no se reinicialitzaven --- source/proc_mapa.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/proc_mapa.cpp b/source/proc_mapa.cpp index 5fac2f7..a3cea2c 100644 --- a/source/proc_mapa.cpp +++ b/source/proc_mapa.cpp @@ -79,6 +79,8 @@ namespace mapa fin_x = textfile::getIntValue("final"); fin_y = textfile::toInt(textfile::getNextToken()); + arounders::arrivats = arounders::eixits = arounders::morts = 0; + //int tilemap[200]; //for (int y=0; y<10; ++y) for (int x=0; x<10; ++x) fscanf(f, "%i", &tilemap[x+y*20]);