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:
parent
6afa31d55c
commit
0342e170f4
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue