From d0d1e6ca1ee09ada76e6a825ff2ac106daf764e1 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:15:54 +0200 Subject: [PATCH] [MIRROR] Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm (#28781) * Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm (#84818) ## About The Pull Request As the title says ## Why It's Good For The Game if someone's using the proc and fucks up they might be able to tell easier ## Changelog :cl: code: added a crash report and removes an arg /:cl: * Adds a crash report to the imprint_gps proc and removes an unnecessary arg in law.dm --------- Co-authored-by: Odairu --- code/game/machinery/computer/_computer.dm | 2 +- code/game/machinery/computer/law.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/_computer.dm b/code/game/machinery/computer/_computer.dm index 72c339aa519..bb5c5a04e22 100644 --- a/code/game/machinery/computer/_computer.dm +++ b/code/game/machinery/computer/_computer.dm @@ -93,7 +93,7 @@ return for(var/obj/item/circuitboard/computer/board in src.contents) if(!contents || board.GetComponent(/datum/component/gps)) - return + CRASH("[src] Called imprint_gps without setting gps_tag") board.AddComponent(/datum/component/gps, "[tracker]") balloon_alert_to_viewers("board tracker enabled", vision_distance = 1) diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 383a980a64d..742166b2856 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -28,7 +28,7 @@ current = null return M.install(current.laws, user) - imprint_gps(gps_tag = "Weak Upload Signal") + imprint_gps("Weak Upload Signal") else return ..()