els enemics poden morir mentre fan spawn

This commit is contained in:
2025-12-10 11:58:26 +01:00
parent 3b638f4715
commit aca1f5200b
3 changed files with 4 additions and 8 deletions

View File

@@ -211,6 +211,7 @@ auto Director::run() -> int {
// Precachejar música per evitar lag al començar
AudioCache::getMusic("title.ogg");
AudioCache::getMusic("game.ogg");
if (Options::console) {
std::cout << "Música precachejada: "
<< AudioCache::getMusicCacheSize() << " fitxers\n";