netejant capçaleres

This commit is contained in:
2025-11-12 10:14:47 +01:00
parent 580e52a51e
commit cf40865d37
4 changed files with 54 additions and 58 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ auto Cache::getText(const std::string& name) -> std::shared_ptr<Text> {
}
// Obtiene la animación a partir de un nombre
auto Cache::getAnimations(const std::string& name) -> Animations& {
auto Cache::getAnimations(const std::string& name) -> SurfaceAnimatedSprite::Animations& {
auto it = std::ranges::find_if(animations_, [&name](const auto& a) { return a.name == name; });
if (it != animations_.end()) {
@@ -300,7 +300,7 @@ void Cache::loadAnimations() {
for (const auto& l : list) {
auto name = getFileName(l);
animations_.emplace_back(name, loadAnimationsFromFile(l));
animations_.emplace_back(name, SurfaceAnimatedSprite::loadAnimationsFromFile(l));
updateLoadingProgress();
}
}