public void SetTraitorsEnabled(YesNoMaybe enabled) { if (GameMain.Server != null) { GameMain.Server.TraitorsEnabled = enabled; } #if CLIENT (traitorProbabilityText as GUITextBlock).Text = enabled.ToString(); #endif }
public void SetTraitorsEnabled(YesNoMaybe enabled) { #if SERVER if (GameMain.Server != null) { GameMain.Server.ServerSettings.TraitorsEnabled = enabled; } #endif #if CLIENT (traitorProbabilityText as GUITextBlock).Text = TextManager.Get(enabled.ToString()); #endif }