mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix SoundEntries.dbc field indices for SMSG_PLAY_MUSIC and remove dead NpcVoiceManager code
Correct SoundEntries.dbc field access in the PlayMusic callback: file names are at fields 3-12 (not 2-11) and DirectoryBase is at field 23 (not 22). Field 2 is the Name label string, not a file path. Remove dead detectVoiceType(creatureEntry) from NpcVoiceManager — it was never called; actual voice detection uses detectVoiceTypeFromDisplayId() in Application.
This commit is contained in:
parent
9c3faa0e16
commit
46f2c0df85
3 changed files with 3 additions and 11 deletions
|
|
@ -2109,10 +2109,10 @@ void Application::setupUICallbacks() {
|
|||
int32_t idx = dbc->findRecordById(soundId);
|
||||
if (idx < 0) return;
|
||||
|
||||
// SoundEntries.dbc (WotLK): fields 2-11 = Name[0..9], field 22 = DirectoryBase
|
||||
// SoundEntries.dbc (WotLK): field 2 = Name (label), fields 3-12 = File[0..9], field 23 = DirectoryBase
|
||||
const uint32_t row = static_cast<uint32_t>(idx);
|
||||
std::string dir = dbc->getString(row, 22);
|
||||
for (uint32_t f = 2; f <= 11; ++f) {
|
||||
std::string dir = dbc->getString(row, 23);
|
||||
for (uint32_t f = 3; f <= 12; ++f) {
|
||||
std::string name = dbc->getString(row, f);
|
||||
if (name.empty()) continue;
|
||||
std::string path = dir.empty() ? name : dir + "\\" + name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue