Fix NPC visibility and stabilize world transport/taxi updates

This commit is contained in:
Kelsi 2026-02-11 18:25:04 -08:00
parent 5dae994830
commit f752a4f517
16 changed files with 452 additions and 173 deletions

View file

@ -68,12 +68,8 @@ BLPImage AssetManager::loadTexture(const std::string& path) {
LOG_DEBUG("Loading texture: ", normalizedPath);
// Read BLP file from MPQ (must hold readMutex — StormLib is not thread-safe)
std::vector<uint8_t> blpData;
{
std::lock_guard<std::mutex> lock(readMutex);
blpData = mpqManager.readFile(normalizedPath);
}
// Route through readFile() so decompressed MPQ bytes participate in file cache.
std::vector<uint8_t> blpData = readFile(normalizedPath);
if (blpData.empty()) {
LOG_WARNING("Texture not found: ", normalizedPath);
return BLPImage();