diff --git a/source/logo.cpp b/source/logo.cpp index 28db2b9..35dd291 100644 --- a/source/logo.cpp +++ b/source/logo.cpp @@ -19,9 +19,11 @@ Logo::Logo(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as sprite2->setSpriteClip(0, 0, texture2->getWidth(), texture2->getHeight()); texture2->setColor(0, 0, 0); + // Crea los sprites de cada linea for (int i = 0; i < texture->getHeight(); ++i) { sprite.push_back(new Sprite(0, i, texture->getWidth(), 1, texture, renderer)); + sprite.back()->setSpriteClip(0, i, texture->getWidth(), 1); if (i % 2 == 0) { sprite.at(i)->setPosX(256 + (i * 3)); diff --git a/source/stats.cpp b/source/stats.cpp index b7541c2..80c034c 100644 --- a/source/stats.cpp +++ b/source/stats.cpp @@ -214,7 +214,6 @@ void Stats::loadFromServer() list.push_back(stat); count = count - 3; - std::cout << stat.name << ";" << stat.visited << ";" << stat.died << std::endl; } } @@ -244,7 +243,6 @@ void Stats::saveToServer() for (auto item : list) { data = data + nameToNumber(item.name) + ";" + std::to_string(item.visited) + ";" + std::to_string(item.died) + ";"; - // std::cout << "GUARDADO: " << item.name << ";" << item.visited << ";" << item.died << std::endl; } jscore::setUserData(options->online.gameID, options->online.jailerID, data); }