mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
fix (#22679)
This commit is contained in:
@@ -109,12 +109,14 @@ SUBSYSTEM_DEF(jobs)
|
||||
|
||||
/datum/controller/subsystem/jobs/proc/FreeRole(rank, force = FALSE) //making additional slot on the fly
|
||||
var/datum/job/job = GetJob(rank)
|
||||
if(!job)
|
||||
return FALSE
|
||||
if(job.job_banned_gamemode)
|
||||
if(!force)
|
||||
return FALSE
|
||||
job.job_banned_gamemode = FALSE // If admins want to force it, they can reopen banned job slots
|
||||
|
||||
if(job && job.current_positions >= job.total_positions && job.total_positions != -1)
|
||||
if(job.current_positions >= job.total_positions && job.total_positions != -1)
|
||||
job.total_positions++
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user