Trabajando en la cache de los recursos de los items
This commit is contained in:
@@ -183,7 +183,7 @@ bool AnimatedSprite::loadFromFile(std::string filePath)
|
||||
if (file.good())
|
||||
{
|
||||
// Procesa el fichero linea a linea
|
||||
printf("Reading file %s\n", filename.c_str());
|
||||
std::cout << "Loading animation from file: " << filePath.c_str() << std::endl;
|
||||
while (std::getline(file, line))
|
||||
{
|
||||
// Si la linea contiene el texto [animation] se realiza el proceso de carga de una animación
|
||||
@@ -294,7 +294,6 @@ bool AnimatedSprite::loadFromFile(std::string filePath)
|
||||
}
|
||||
|
||||
// Cierra el fichero
|
||||
printf("Closing file %s\n\n", filename.c_str());
|
||||
file.close();
|
||||
}
|
||||
// El fichero no se puede abrir
|
||||
|
||||
Reference in New Issue
Block a user