Skip to content

Commit

Permalink
Fixes portals moving anchored atoms (tgstation#22587)
Browse files Browse the repository at this point in the history
* Fixes portals moving anchored objects

* Missing a letter

* Mecha
  • Loading branch information
KorPhaeron authored and AnturK committed Jan 2, 2017
1 parent 5628bbe commit 010f305
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/events/wormholes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
/obj/effect/portal/wormhole/teleport(atom/movable/M)
if(istype(M, /obj/effect)) //sparks don't teleport
return
if(M.anchored && istype(M, /obj/mecha))
if(M.anchored && !istype(M, /obj/mecha))
return

if(istype(M, /atom/movable))
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mining/equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
desc = "A stable hole in the universe made by a wormhole jaunter. Turbulent doesn't even begin to describe how rough passage through one of these is, but at least it will always get you somewhere near a beacon."

/obj/effect/portal/wormhole/jaunt_tunnel/teleport(atom/movable/M)
if(istype(M, /obj/effect))
if(M.anchored || istype(M, /obj/effect))
return

if(istype(M, /atom/movable))
Expand Down

0 comments on commit 010f305

Please sign in to comment.