From 4a5fb011e6dc5a2ff7f896719bac3ad44bd22897 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Sat, 22 Apr 2023 08:28:54 +0100 Subject: [PATCH] 515 Compliance part 2 (#20809) * more illegal procpaths * Update code/modules/ruins/lavalandruin_code/puzzle.dm * REGEX_REPLACE_HANDLER * shuttle fix --- code/__HELPERS/global_lists.dm | 2 +- code/__HELPERS/icons.dm | 2 -- code/__HELPERS/path.dm | 4 ++-- code/__HELPERS/qdel.dm | 2 +- code/__HELPERS/unique_ids.dm | 2 +- code/__byond_version_compat.dm | 3 +++ code/controllers/failsafe.dm | 2 +- code/controllers/master.dm | 12 +++++----- code/controllers/subsystem/garbage.dm | 2 +- code/controllers/subsystem/tickets/tickets.dm | 2 +- code/controllers/subsystem/timer.dm | 6 ++--- code/datums/log_viewer.dm | 2 +- code/game/dna/dna2_helpers.dm | 2 +- code/game/dna/mutations/disabilities.dm | 1 + code/modules/admin/verbs/debug.dm | 6 ++--- code/modules/admin/verbs/randomverbs.dm | 4 ++-- .../client/preference/link_processing.dm | 24 +++++++++---------- code/modules/clothing/chameleon.dm | 2 +- .../mob/living/carbon/human/appearance.dm | 14 +++++------ .../mob/living/carbon/human/human_say.dm | 1 + .../modules/ruins/lavalandruin_code/puzzle.dm | 2 +- code/modules/shuttle/navigation_computer.dm | 9 +------ 22 files changed, 51 insertions(+), 55 deletions(-) diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 9e6a0052c96..82bac6d4557 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -133,7 +133,7 @@ var/datum/client_login_processor/CLP = new processor_type GLOB.client_login_processors += CLP // Sort them by priority, lowest first - sortTim(GLOB.client_login_processors, /proc/cmp_login_processor_priority) + sortTim(GLOB.client_login_processors, GLOBAL_PROC_REF(cmp_login_processor_priority)) GLOB.emote_list = init_emote_list() diff --git a/code/__HELPERS/icons.dm b/code/__HELPERS/icons.dm index 6c9a611861e..46049e777c6 100644 --- a/code/__HELPERS/icons.dm +++ b/code/__HELPERS/icons.dm @@ -755,8 +755,6 @@ The _flatIcons list is a cache for generated icon files. break layers[current] = current_layer - //sortTim(layers, /proc/cmp_image_layer_asc) - var/icon/add // Icon of overlay being added // Current dimensions of flattened icon diff --git a/code/__HELPERS/path.dm b/code/__HELPERS/path.dm index c3ba6fac0a4..10daae7ee77 100644 --- a/code/__HELPERS/path.dm +++ b/code/__HELPERS/path.dm @@ -127,7 +127,7 @@ /datum/pathfind/New(atom/movable/caller, atom/goal, id, max_distance, mintargetdist, simulated_only, avoid, diagonal_safety) src.caller = caller end = get_turf(goal) - open = new /datum/heap(/proc/HeapPathWeightCompare) + open = new /datum/heap(GLOBAL_PROC_REF(HeapPathWeightCompare)) sources = new() src.id = id src.max_distance = max_distance @@ -428,7 +428,7 @@ for(var/obj/iter_object in destination_turf) if(!iter_object.CanPathfindPass(ID, reverse_dir, caller, no_id = no_id)) return TRUE - + for(var/mob/living/iter_mob in destination_turf) if(!iter_mob.CanPathfindPass(ID, reverse_dir, caller, no_id = no_id)) return TRUE diff --git a/code/__HELPERS/qdel.dm b/code/__HELPERS/qdel.dm index cdd8a0ee6aa..794524d215e 100644 --- a/code/__HELPERS/qdel.dm +++ b/code/__HELPERS/qdel.dm @@ -15,7 +15,7 @@ * Proc intended to be used when someone wants the src datum to be qdeled when a certain signal is sent to them. * * Example usage: - * RegisterSignal(item, COMSIG_PARENT_QDELETING, /datum/proc/signal_qdel) + * RegisterSignal(item, COMSIG_PARENT_QDELETING, TYPE_PROC_REF(/datum, signal_qdel)) */ /datum/proc/signal_qdel() SIGNAL_HANDLER diff --git a/code/__HELPERS/unique_ids.dm b/code/__HELPERS/unique_ids.dm index cc98e1e6764..f0ef03d554f 100644 --- a/code/__HELPERS/unique_ids.dm +++ b/code/__HELPERS/unique_ids.dm @@ -81,7 +81,7 @@ GLOBAL_LIST_EMPTY(uid_log) if(!check_rights(R_DEBUG)) return - var/list/sorted = sortTim(GLOB.uid_log, cmp=/proc/cmp_numeric_dsc, associative = TRUE) + var/list/sorted = sortTim(GLOB.uid_log, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE) var/list/text = list("

UID Log

", "

Current UID: [GLOB.next_unique_datum_id]

", "