- PA particles and projectiles will now be garbage collected. I have tested it to make sure that they are no longer in memory.

- You should no longer open doors when being pushed back in a pod/shuttle.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5750 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2013-02-20 23:29:07 +00:00
parent 6b03a2ebbb
commit 504342b4a7
4 changed files with 23 additions and 8 deletions
@@ -22,9 +22,11 @@
movement_range = 20
energy = 50
/obj/effect/accelerated_particle/New(loc, dir = 2)
src.loc = loc
src.dir = dir
if(movement_range > 20)
movement_range = 20
spawn(0)
@@ -48,7 +50,7 @@
/obj/effect/accelerated_particle/ex_act(severity)
del(src)
loc = null
return
@@ -68,11 +70,13 @@
/obj/effect/accelerated_particle/proc/move(var/lag)
if(loc == null)
return
if(!step(src,dir))
src.loc = get_step(src,dir)
movement_range--
if(movement_range <= 0)
del(src)
loc = null
else
sleep(lag)
move(lag)