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.
This commit is contained in:
VMSolidus
2026-04-08 15:53:10 +00:00
committed by GitHub
parent 7d15ceb8d5
commit 174577fb5b
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -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)
. = ..()