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

@ -45,6 +45,9 @@ public:
void setZoneType(ZoneType type);
ZoneType getCurrentZone() const { return currentZone_; }
// Convenience: derive ZoneType and CityType from a WoW zone ID
void setZoneId(uint32_t zoneId);
// City ambience control
enum class CityType {
NONE,