mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 16:50:15 +00:00
Fix NPC visibility and stabilize world transport/taxi updates
This commit is contained in:
parent
5dae994830
commit
f752a4f517
16 changed files with 452 additions and 173 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue