Skip to content

Commit

Permalink
bugfix: reset occupations after game mod probing (ss220-space#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach authored and SuhEugene committed Dec 22, 2023
1 parent 1cb17b7 commit 783d199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/controllers/subsystem/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ SUBSYSTEM_DEF(jobs)
if(player?.mind)
player.mind.assigned_role = null
player.mind.special_role = null
SetupOccupations()
for(var/datum/job/job in occupations)
job.current_positions = initial(job.current_positions)
unassigned = list()
return


///This proc is called before the level loop of DivideOccupations() and will try to select a head, ignoring ALL non-head preferences for every level until it locates a head or runs out of levels to check
/datum/controller/subsystem/jobs/proc/FillHeadPosition()
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ SUBSYSTEM_DEF(ticker)
var/datum/game_mode/M = config.pick_mode(GLOB.secret_force_mode)
if(M.can_start())
mode = config.pick_mode(GLOB.secret_force_mode)
SSjobs.ResetOccupations()
if(!mode)
mode = pickweight(runnable_modes)
if(mode)
Expand Down

0 comments on commit 783d199

Please sign in to comment.