- [FIX] Algunes variables no se reinicialitzaven

This commit is contained in:
2023-10-20 20:06:25 +02:00
parent 448ffa3597
commit 5dcf2e582a

View File

@@ -79,6 +79,8 @@ namespace mapa
fin_x = textfile::getIntValue("final"); fin_x = textfile::getIntValue("final");
fin_y = textfile::toInt(textfile::getNextToken()); fin_y = textfile::toInt(textfile::getNextToken());
arounders::arrivats = arounders::eixits = arounders::morts = 0;
//int tilemap[200]; //int tilemap[200];
//for (int y=0; y<10; ++y) for (int x=0; x<10; ++x) fscanf(f, "%i", &tilemap[x+y*20]); //for (int y=0; y<10; ++y) for (int x=0; x<10; ++x) fscanf(f, "%i", &tilemap[x+y*20]);