fix: bucles cap a ranges algorithms (38 troballes)
This commit is contained in:
@@ -31,9 +31,9 @@ Ending2::Ending2()
|
||||
|
||||
// Inicializa el vector de colores
|
||||
const std::vector<std::string> COLORS = {"white", "yellow", "cyan", "green", "magenta", "red", "blue", "black"};
|
||||
for (const auto& color : COLORS) {
|
||||
colors_.push_back(stringToColor(color));
|
||||
}
|
||||
colors_.reserve(COLORS.size());
|
||||
std::ranges::transform(COLORS, std::back_inserter(colors_),
|
||||
[](const auto& color) { return stringToColor(color); });
|
||||
|
||||
Screen::get()->setBorderColor(static_cast<Uint8>(PaletteColor::BLACK)); // Cambia el color del borde
|
||||
iniSpriteList(); // Inicializa la lista de sprites
|
||||
|
||||
Reference in New Issue
Block a user