(8b6b6ed4c) Added indication to server preview window if server has VOIP enabled

This commit is contained in:
Joonas Rikkonen
2019-04-23 11:17:55 +03:00
parent b48a854828
commit b6d854fc94
4 changed files with 15 additions and 3 deletions
@@ -214,6 +214,7 @@ namespace Barotrauma.Steam
}
if (s.Rules.ContainsKey("allowspectating")) serverInfo.AllowSpectating = s.Rules["allowspectating"] == "True";
if (s.Rules.ContainsKey("allowrespawn")) serverInfo.AllowRespawn = s.Rules["allowrespawn"] == "True";
if (s.Rules.ContainsKey("voicechatenabled")) serverInfo.VoipEnabled = s.Rules["voicechatenabled"] == "True";
if (s.Rules.ContainsKey("traitors"))
{
if (Enum.TryParse(s.Rules["traitors"], out YesNoMaybe traitorsEnabled)) serverInfo.TraitorsEnabled = traitorsEnabled;