]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix game.role_timers not effecting the antag menu (#25964)
authorVasilis <vasilis@pikachu.systems>
Sun, 10 Mar 2024 16:30:16 +0000 (17:30 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Mar 2024 16:30:16 +0000 (17:30 +0100)
* Fix game.role_timers not effecting the antag menu

* Yeah i guess i should

Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs

index f896d7fa39b0b3d3e00ceb000e08f67e175ae9f7..82ac4aa28f3781a9400020b1ea1e9bac962b498a 100644 (file)
@@ -88,12 +88,6 @@ public sealed class JobRequirementsManager
             return false;
         }
 
-        if (job.Requirements == null ||
-            !_cfg.GetCVar(CCVars.GameRoleTimers))
-        {
-            return true;
-        }
-
         var player = _playerManager.LocalSession;
         if (player == null)
             return true;
@@ -105,7 +99,7 @@ public sealed class JobRequirementsManager
     {
         reason = null;
 
-        if (requirements == null)
+        if (requirements == null || !_cfg.GetCVar(CCVars.GameRoleTimers))
             return true;
 
         var reasons = new List<string>();