Change cvar usages to use CVarDef and define them in CCVars (#2250)
* Change cvar usages to use CVarDef and define them in CCVars * Merge fixes * Remove duplicate cvar registration
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Threading;
|
||||
using Content.Server.Interfaces.Chat;
|
||||
using Content.Server.Interfaces.GameTicking;
|
||||
using Content.Shared;
|
||||
using Content.Shared.GameObjects.Components.Damage;
|
||||
using Robust.Server.Interfaces.Player;
|
||||
using Robust.Server.Player;
|
||||
@@ -56,7 +57,7 @@ namespace Content.Server.GameTicking.GameRules
|
||||
{
|
||||
_checkTimerCancel = null;
|
||||
|
||||
if (!_cfg.GetCVar<bool>("game.enablewin"))
|
||||
if (!_cfg.GetCVar(CCVars.GameLobbyEnableWin))
|
||||
return;
|
||||
|
||||
IPlayerSession winner = null;
|
||||
|
||||
Reference in New Issue
Block a user