Skip to content

Commit

Permalink
Merge pull request #2633 from ARF-SS13/progbarbarbarbarbarbar
Browse files Browse the repository at this point in the history
makes the progbar ss not jitter so fuckin much
  • Loading branch information
Superlagg committed Jul 14, 2023
2 parents 7767881 + d974887 commit c3c96b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/controllers/subsystem/progress_bars.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROCESSING_SUBSYSTEM_DEF(progress_bars)
name = "Progress Bars"
name = "ProgBars" // jitter jitter jitter
flags = SS_NO_INIT
wait = 0.2 SECONDS

Expand All @@ -16,6 +16,8 @@ PROCESSING_SUBSYSTEM_DEF(progress_bars)
/// format: list(ckey = list("bar_id"))
var/list/ckey_proglist = list()

var/debug_make_visible_to_everyone = FALSE

/datum/controller/subsystem/processing/progress_bars/proc/add_bar(atom/owner, list/can_see = list(), duration = 5 SECONDS, automatic = TRUE, auto_remove = TRUE)
if(duration <= 0) // imma divide your zero uwu
return FALSE // gotta do it safely tho
Expand Down Expand Up @@ -166,7 +168,7 @@ PROCESSING_SUBSYSTEM_DEF(progress_bars)
RegisterSignal(location, COMSIG_PARENT_QDELETING, .proc/master_deleted)

/datum/progressbar/proc/register_visibility(list/can_see)
if(!LAZYLEN(can_see))
if(!LAZYLEN(can_see) || SSprogress_bars.debug_make_visible_to_everyone) // heh
for(var/ckey in GLOB.directory)
visible_to |= ckey
return
Expand Down

0 comments on commit c3c96b1

Please sign in to comment.