mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
- Fixed a potential problem where the random teleportation thing that teleporters have a chance of doing would teleport you to a tile that is behind the transition edge.
- Fixed issue 470. You can now teleport while using the chameleon projector. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4466 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
//must succeed in most cases
|
//must succeed in most cases
|
||||||
proc/setTeleatom(atom/movable/ateleatom)
|
proc/setTeleatom(atom/movable/ateleatom)
|
||||||
if(istype(ateleatom, /obj/effect))
|
if(istype(ateleatom, /obj/effect) && !istype(ateleatom, /obj/effect/dummy/chameleon))
|
||||||
del(ateleatom)
|
del(ateleatom)
|
||||||
return 0
|
return 0
|
||||||
if(istype(ateleatom))
|
if(istype(ateleatom))
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
return
|
return
|
||||||
if (istype(M, /atom/movable))
|
if (istype(M, /atom/movable))
|
||||||
if(prob(5) && !accurate) //oh dear a problem, put em in deep space
|
if(prob(5) && !accurate) //oh dear a problem, put em in deep space
|
||||||
do_teleport(M, locate(rand(5, world.maxx - 5), rand(5, world.maxy - 5), 3), 2)
|
do_teleport(M, locate(rand((2*TRANSITIONEDGE), world.maxx - (2*TRANSITIONEDGE)), rand((2*TRANSITIONEDGE), world.maxy - (2*TRANSITIONEDGE)), 3), 2)
|
||||||
else
|
else
|
||||||
do_teleport(M, com.locked) //dead-on precision
|
do_teleport(M, com.locked) //dead-on precision
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user