mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
4ac32a1206
commit
68bf3d32b0
3 changed files with 95 additions and 0 deletions
|
|
@ -3155,6 +3155,10 @@ void Renderer::update(float deltaTime) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Update ambient sound manager zone type
|
||||
if (ambientSoundManager) {
|
||||
ambientSoundManager->setZoneId(zoneId);
|
||||
}
|
||||
}
|
||||
|
||||
musicManager->update(deltaTime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue