mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Always log MWMO parsing results, even when empty
Removed condition that suppressed logging when wmoNames.size() == 0. Now will always show 'Loaded X WMO names from MWMO chunk' to confirm MWMO parsing is happening and reveal if ADT tiles have empty or missing WMO name lists. This will help diagnose why cathedral WMOs aren't appearing in logs.
This commit is contained in:
parent
0a7719790d
commit
0b1f1ec2e3
1 changed files with 7 additions and 9 deletions
|
|
@ -203,15 +203,13 @@ void ADTLoader::parseMWMO(const uint8_t* data, size_t size, ADTTerrain& terrain)
|
|||
offset += nameLen + 1;
|
||||
}
|
||||
|
||||
if (terrain.wmoNames.size() > 0) {
|
||||
LOG_INFO("Loaded ", terrain.wmoNames.size(), " WMO names");
|
||||
for (size_t i = 0; i < terrain.wmoNames.size(); i++) {
|
||||
LOG_INFO(" WMO[", i, "]: ", terrain.wmoNames[i]);
|
||||
// Flag potential duplicate cathedral models
|
||||
if (terrain.wmoNames[i].find("cathedral") != std::string::npos ||
|
||||
terrain.wmoNames[i].find("Cathedral") != std::string::npos) {
|
||||
LOG_INFO("*** CATHEDRAL WMO FOUND: ", terrain.wmoNames[i]);
|
||||
}
|
||||
LOG_INFO("Loaded ", terrain.wmoNames.size(), " WMO names from MWMO chunk");
|
||||
for (size_t i = 0; i < terrain.wmoNames.size(); i++) {
|
||||
LOG_INFO(" WMO[", i, "]: ", terrain.wmoNames[i]);
|
||||
// Flag potential duplicate cathedral models
|
||||
if (terrain.wmoNames[i].find("cathedral") != std::string::npos ||
|
||||
terrain.wmoNames[i].find("Cathedral") != std::string::npos) {
|
||||
LOG_INFO("*** CATHEDRAL WMO FOUND: ", terrain.wmoNames[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue