fix(Core/Event): Hourly bell: Dwarf horn sound should only play once (#12795)
Co-authored-by: schell244 <>
This commit is contained in:
parent
c6bcae05e2
commit
241cbac46a
1 changed files with 6 additions and 0 deletions
|
|
@ -1877,6 +1877,12 @@ public:
|
|||
uint8 _rings = (local_tm.tm_hour) % 12;
|
||||
_rings = (_rings == 0) ? 12 : _rings; // 00:00 and 12:00
|
||||
|
||||
// Dwarf hourly horn should only play a single time, each time the next hour begins.
|
||||
if (_soundId == BELLTOLLDWARFGNOME)
|
||||
{
|
||||
_rings = 1;
|
||||
}
|
||||
|
||||
// Schedule ring event
|
||||
for (auto i = 0; i < _rings; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue