From 4ae462136ef9a82c98ae2fd4d9936d46968b3d7e Mon Sep 17 00:00:00 2001 From: Benedikt Galbavy Date: Wed, 24 Jan 2024 09:54:20 +0100 Subject: [PATCH] Improved console output --- src/TextureManager.cpp | 1 + src/TileComponent.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TextureManager.cpp b/src/TextureManager.cpp index fa9ee07..1874384 100644 --- a/src/TextureManager.cpp +++ b/src/TextureManager.cpp @@ -13,6 +13,7 @@ SDL_Texture* TextureManager::loadTexture(const char* fileName) auto texture = IMG_LoadTexture(Game::renderer, fileName); if (texture == NULL) throw std::runtime_error(std::string("Couldn't load texture '") + fileName + "'"); this->texture_cache.emplace(fileName, texture); + printf("Loaded texture at '%s'\n", fileName); return texture; } diff --git a/src/TileComponent.cpp b/src/TileComponent.cpp index fc4b83e..220bc73 100644 --- a/src/TileComponent.cpp +++ b/src/TileComponent.cpp @@ -17,7 +17,7 @@ TileComponent::TileComponent(int x, int y, int w, int h, int id) return; } bool test = it == textureDict.textureDictionary.end(); - std::cout << it->second.data() << std::endl; + // std::cout << it->second.data() << std::endl; this->path = it->second.data(); }