Fix game.role_timers not effecting the antag menu (#25964)

* Fix game.role_timers not effecting the antag menu

* Yeah i guess i should
This commit is contained in:
Vasilis
2024-03-10 17:30:16 +01:00
committed by GitHub
parent e4a4f00626
commit 1eb2bcf455

View 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>();