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

* Fix game.role_timers not effecting the antag menu

* Yeah i guess i should

(cherry picked from commit 1eb2bcf45532c4200c1f2606d1759fe335a636f7)
This commit is contained in:
Vasilis 2024-03-10 17:30:16 +01:00 committed by Debug
parent 6afa31d55c
commit 0342e170f4
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 1 additions and 7 deletions

View File

@ -89,12 +89,6 @@ public sealed partial class JobRequirementsManager
return false;
}
if (job.Requirements == null ||
!_cfg.GetCVar(CCVars.GameRoleTimers))
{
return true;
}
var player = _playerManager.LocalSession;
if (player == null)
return true;
@ -106,7 +100,7 @@ public sealed partial class JobRequirementsManager
{
reason = null;
if (requirements == null)
if (requirements == null || !_cfg.GetCVar(CCVars.GameRoleTimers))
return true;
var reasons = new List<string>();