mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
515 Compliance part 2 (#20809)
* more illegal procpaths * Update code/modules/ruins/lavalandruin_code/puzzle.dm * REGEX_REPLACE_HANDLER * shuttle fix
This commit is contained in:
@@ -84,7 +84,7 @@ SUBSYSTEM_DEF(garbage)
|
||||
var/list/dellog = list()
|
||||
|
||||
//sort by how long it's wasted hard deleting
|
||||
sortTim(items, cmp=/proc/cmp_qdel_item_time, associative = TRUE)
|
||||
sortTim(items, GLOBAL_PROC_REF(cmp_qdel_item_time), TRUE)
|
||||
for(var/path in items)
|
||||
var/datum/qdel_item/I = items[path]
|
||||
dellog += "Path: [path]"
|
||||
|
||||
@@ -236,7 +236,7 @@ SUBSYSTEM_DEF(tickets)
|
||||
for(var/key in response_phrases) //build a new list based on the short descriptive keys of the master list so we can send this as the input instead of the full paragraphs to the admin choosing which autoresponse
|
||||
sorted_responses += key
|
||||
|
||||
var/message_key = input("Select an autoresponse. This will mark the ticket as resolved.", "Autoresponse") as null|anything in sortTim(sorted_responses, /proc/cmp_text_asc) //use sortTim and cmp_text_asc to sort alphabetically
|
||||
var/message_key = input("Select an autoresponse. This will mark the ticket as resolved.", "Autoresponse") as null|anything in sortTim(sorted_responses, GLOBAL_PROC_REF(cmp_text_asc)) //use sortTim and cmp_text_asc to sort alphabetically
|
||||
var/client/ticket_owner = get_client_by_ckey(T.client_ckey)
|
||||
switch(message_key)
|
||||
if(null) //they cancelled
|
||||
|
||||
@@ -572,7 +572,7 @@ GLOBAL_LIST_EMPTY(timers_by_type)
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
|
||||
var/list/sorted = sortTim(GLOB.timers_by_type, cmp=/proc/cmp_numeric_dsc, associative = TRUE)
|
||||
var/list/sorted = sortTim(GLOB.timers_by_type, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
|
||||
var/list/text = list("<h1>Timer Log</h1>", "<ul>")
|
||||
for(var/key in sorted)
|
||||
text += "<li>[key] - [sorted[key]]</li>"
|
||||
@@ -595,7 +595,7 @@ GLOBAL_LIST_EMPTY(timers_by_type)
|
||||
timers[cbtxt] = 1
|
||||
|
||||
|
||||
var/list/sorted = sortTim(timers, cmp=/proc/cmp_numeric_dsc, associative = TRUE)
|
||||
var/list/sorted = sortTim(timers, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
|
||||
var/list/text = list("<h1>All active timers sorted by callback</h1>", "<ul>")
|
||||
for(var/key in sorted)
|
||||
text += "<li>[key] - [sorted[key]]</li>"
|
||||
@@ -612,7 +612,7 @@ GLOBAL_LIST_EMPTY(timers_by_type)
|
||||
timers2[cbtxt] = 1
|
||||
|
||||
text += "<h1>All buckets, sorted by callback</h1><ul>"
|
||||
var/list/sorted2 = sortTim(timers2, cmp=/proc/cmp_numeric_dsc, associative = TRUE)
|
||||
var/list/sorted2 = sortTim(timers2, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
|
||||
for(var/key in sorted2)
|
||||
text += "<li>[key] - [sorted2[key]]</li>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user