Skip to content

Commit

Permalink
Do not remove a player from unassigned after a failed role assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Dec 11, 2024
1 parent 9c15bc2 commit cb24eac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/controllers/subsystem/SSjobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ SUBSYSTEM_DEF(jobs)
probability_of_antag_role_restriction /= 10
if((job.current_positions < job.spawn_positions) || job.spawn_positions == -1)
Debug("GRJ Random job given, Player: [player], Job: [job]")
AssignRole(player, job.title)
unassigned -= player
break
var role_assigned = AssignRole(player, job.title)
if(role_assigned)
unassigned -= player
break

/datum/controller/subsystem/jobs/proc/ResetOccupations()
for(var/mob/new_player/player in GLOB.player_list)
Expand Down

0 comments on commit cb24eac

Please sign in to comment.