mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
style fix
This commit is contained in:
parent
1e19a7b0ae
commit
fa198efbb5
1 changed files with 4 additions and 4 deletions
|
@ -396,13 +396,13 @@ void Core::InstanceContent::setCurrentBGM( uint16_t bgmIndex )
|
||||||
{
|
{
|
||||||
m_currentBgm = bgmIndex;
|
m_currentBgm = bgmIndex;
|
||||||
|
|
||||||
for (const auto& playerIt : m_playerMap)
|
for( const auto& playerIt : m_playerMap )
|
||||||
{
|
{
|
||||||
auto player = playerIt.second;
|
auto player = playerIt.second;
|
||||||
// note: retail do send a BGM_MUTE(1) first before any BGM transition, but YOLO in this case.
|
// note: retail do send a BGM_MUTE(1) first before any BGM transition, but YOLO in this case.
|
||||||
// also do note that this code can't control the bgm granularly. (i.e. per player for WoD submap.) oops.
|
// also do note that this code can't control the bgm granularly. (i.e. per player for WoD submap.) oops.
|
||||||
// player->queuePacket(ActorControlPacket143(player->getId(), DirectorUpdate, getDirectorId(), 0x80000001, 1));
|
// player->queuePacket( ActorControlPacket143( player->getId(), DirectorUpdate, getDirectorId(), 0x80000001, 1 ) );
|
||||||
player->queuePacket(ActorControlPacket143(player->getId(), DirectorUpdate, getDirectorId(), 0x80000001, bgmIndex));
|
player->queuePacket( ActorControlPacket143( player->getId(), DirectorUpdate, getDirectorId(), 0x80000001, bgmIndex ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue