Wire ambient sound zone detection: setZoneType/setCityType was never called

Add AmbientSoundManager::setZoneId() that maps WoW zone IDs to the
appropriate ZoneType (forest/grasslands/desert/jungle/marsh/beach) or
CityType (Stormwind/Ironforge/Darnassus/Orgrimmar/Undercity/ThunderBluff)
and delegates to setZoneType/setCityType. Call it from the renderer's
zone transition handler so zone ambience (looping sounds, city bells,
etc.) actually activates when the player enters a zone.
This commit is contained in:
Kelsi 2026-03-09 16:24:12 -07:00
parent 4ac32a1206
commit 68bf3d32b0
3 changed files with 95 additions and 0 deletions

View file

@ -3155,6 +3155,10 @@ void Renderer::update(float deltaTime) {
}
}
}
// Update ambient sound manager zone type
if (ambientSoundManager) {
ambientSoundManager->setZoneId(zoneId);
}
}
musicManager->update(deltaTime);