Config presets system. (#12824)

This commit is contained in:
Pieter-Jan Briers
2022-12-16 23:26:24 +01:00
committed by GitHub
parent 326fdefe85
commit 55c61b9c35
8 changed files with 105 additions and 17 deletions

View File

@@ -55,9 +55,6 @@ public sealed partial class ShuttleSystem
private void InitializeEscape()
{
#if !FULL_RELEASE
_configManager.OverrideDefault(CCVars.EmergencyShuttleEnabled, false);
#endif
_emergencyShuttleEnabled = _configManager.GetCVar(CCVars.EmergencyShuttleEnabled);
// Don't immediately invoke as roundstart will just handle it.
_configManager.OnValueChanged(CCVars.EmergencyShuttleEnabled, SetEmergencyShuttleEnabled);