From 174577fb5b2488bfd0bfea2dd19e57eb1b8cb8db Mon Sep 17 00:00:00 2001 From: VMSolidus Date: Wed, 8 Apr 2026 11:53:10 -0400 Subject: [PATCH] Portal Hard Del Fix (#22167) Another small fix, but for a hard del that was "Player on demand harddelete". Each and every single time Telescience activated their portal machine, a hard delete occurred. Which is pretty silly considering the average science player- if they use the machine, will press it like 50 times in a round, and I know this because they'll make 50 hard dels lol. It was a pretty simple problem. Portals stored two references to the thing that made them, but weren't clearing them when destroyed. --- code/game/objects/effects/portals.dm | 5 ++++- html/changelogs/hellfirejag portal hard del.yml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/hellfirejag portal hard del.yml diff --git a/code/game/objects/effects/portals.dm b/code/game/objects/effects/portals.dm index 74514879884..a60fe6059f3 100644 --- a/code/game/objects/effects/portals.dm +++ b/code/game/objects/effects/portals.dm @@ -61,7 +61,10 @@ if(istype(creator, /obj/item/hand_tele)) var/obj/item/hand_tele/HT = creator HT.remove_portal(src) - . = ..() + + target = null + creator = null + return ..() /obj/effect/portal/CollidedWith(atom/bumped_atom) . = ..() diff --git a/html/changelogs/hellfirejag portal hard del.yml b/html/changelogs/hellfirejag portal hard del.yml new file mode 100644 index 00000000000..b9a8a319a96 --- /dev/null +++ b/html/changelogs/hellfirejag portal hard del.yml @@ -0,0 +1,4 @@ +author: Hellfirejag +delete-after: True +changes: + - bugfix: "Fixed a hard delete related to telescience portals."