Skip to content

Commit

Permalink
Fix: avoid sleeping SSTicker (ParadiseSS13#561)
Browse files Browse the repository at this point in the history
* Fix: Avoid sleeping the ticker

* Refactor: Use waitfor

Co-authored-by: Simon Ogorodnik <simon.ogorodnik@jetbrains.com>
  • Loading branch information
Bizzonium and semoro committed Jan 9, 2022
1 parent d51c2e1 commit f98137e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/subsystem/ticker.dm
Expand Up @@ -86,7 +86,8 @@ SUBSYSTEM_DEF(ticker)
current_state = GAME_STATE_PREGAME
fire() // TG says this is a good idea
for(var/mob/new_player/N in GLOB.player_list)
N.new_player_panel_proc() // to enable the observe option
if (N.client)
N.new_player_panel_proc() // to enable the observe option
if(GAME_STATE_PREGAME)
if(!SSticker.ticker_going) // This has to be referenced like this, and I dont know why. If you dont put SSticker. it will break
return
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/new_player/new_player.dm
Expand Up @@ -44,6 +44,7 @@


/mob/new_player/proc/new_player_panel_proc()
set waitfor = FALSE
var/real_name = client.prefs.real_name
if(client.prefs.toggles2 & PREFTOGGLE_2_RANDOMSLOT)
real_name = "Random Character Slot"
Expand Down

0 comments on commit f98137e

Please sign in to comment.