[Manual Mirror] One use portals will only become used up when they successfully telep (#18981)

One use portals will only become used up when they successfully teleport (#71034)

Makes one use portals self-qdel only when they confirm that whatever
tries using them has teleported.

(cherry picked from commit ecd62aed24)

Co-authored-by: Striders13 <53361823+Striders13@users.noreply.github.com>
This commit is contained in:
nevimer
2023-01-28 20:19:42 +00:00
committed by GitHub
co-authored by Striders13
parent 48f3db3562
commit 7544c4c38e
+2 -1
View File
@@ -183,4 +183,5 @@
/obj/effect/portal/permanent/one_way/one_use/teleport(atom/movable/M, force = FALSE)
. = ..()
qdel(src)
if (. && !isdead(M))
qdel(src)