Core/PacketIO: Name unknown field in SMSG_FEATURE_SYSTEM_STATUS

This commit is contained in:
Shauren
2020-02-08 18:11:28 +01:00
parent 93aa30f447
commit bdc34c46aa
3 changed files with 5 additions and 4 deletions

View File

@@ -1191,6 +1191,7 @@ void WorldSession::SendFeatureSystemStatus()
features.CharUndeleteEnabled = sWorld->getBoolConfig(CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED);
features.BpayStoreEnabled = sWorld->getBoolConfig(CONFIG_FEATURE_SYSTEM_BPAY_STORE_ENABLED);
features.IsMuted = !CanSpeak();
SendPacket(features.Write());
}

View File

@@ -75,7 +75,7 @@ WorldPacket const* WorldPackets::System::FeatureSystemStatus::Write()
_worldPacket.WriteBit(VoiceChatDisabledByParentalControl);
_worldPacket.WriteBit(VoiceChatMutedByParentalControl);
_worldPacket.WriteBit(QuestSessionEnabled);
_worldPacket.WriteBit(Unused825);
_worldPacket.WriteBit(IsMuted);
_worldPacket.WriteBit(ClubFinderEnabled);
_worldPacket.FlushBits();
@@ -121,7 +121,7 @@ WorldPacket const* WorldPackets::System::FeatureSystemStatus::Write()
}
{
_worldPacket.WriteBit(VoiceChatManagerSettings.Enabled);
_worldPacket.WriteBit(VoiceChatManagerSettings.IsSquelched);
_worldPacket << VoiceChatManagerSettings.BnetAccountGuid;
_worldPacket << VoiceChatManagerSettings.GuildGuid;
}

View File

@@ -83,7 +83,7 @@ namespace WorldPackets
struct VoiceChatProxySettings
{
bool Enabled = false;
bool IsSquelched = false;
ObjectGuid BnetAccountGuid;
ObjectGuid GuildGuid;
};
@@ -142,7 +142,7 @@ namespace WorldPackets
bool VoiceChatDisabledByParentalControl = false;
bool VoiceChatMutedByParentalControl = false;
bool QuestSessionEnabled = false;
bool Unused825 = false;
bool IsMuted = false;
bool ClubFinderEnabled = false;
Optional<std::vector<uint8>> RaceClassExpansionLevels;