mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
gives runtime access the ability to view timer logs and debug timers (#22451)
This commit is contained in:
@@ -582,7 +582,7 @@ GLOBAL_LIST_EMPTY(timers_by_type)
|
||||
set category = "Debug"
|
||||
set desc = "Shows the log of what types created timers this round"
|
||||
|
||||
if(!check_rights(R_DEBUG))
|
||||
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
|
||||
return
|
||||
|
||||
var/list/sorted = sortTim(GLOB.timers_by_type, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
|
||||
@@ -598,6 +598,9 @@ GLOBAL_LIST_EMPTY(timers_by_type)
|
||||
set category = "Debug"
|
||||
set desc = "Shows currently active timers, grouped by callback"
|
||||
|
||||
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
|
||||
return
|
||||
|
||||
var/list/timers = list()
|
||||
for(var/id in SStimer.timer_id_dict)
|
||||
var/datum/timedevent/T = SStimer.timer_id_dict[id]
|
||||
|
||||
Reference in New Issue
Block a user