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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue