mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
- 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:
@@ -50,6 +50,10 @@
|
||||
var/drowsy = 0
|
||||
|
||||
|
||||
proc/delete()
|
||||
// Garbage collect the projectiles
|
||||
loc = null
|
||||
|
||||
proc/on_hit(var/atom/target, var/blocked = 0)
|
||||
if(blocked >= 2) return 0//Full block
|
||||
if(!isliving(target)) return 0
|
||||
@@ -109,7 +113,8 @@
|
||||
|
||||
density = 0
|
||||
invisibility = 101
|
||||
del(src)
|
||||
delete()
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
||||
@@ -124,13 +129,14 @@
|
||||
|
||||
process()
|
||||
if(kill_count < 1)
|
||||
del(src)
|
||||
delete()
|
||||
return
|
||||
kill_count--
|
||||
spawn while(src)
|
||||
spawn while(src && src.loc)
|
||||
if((!( current ) || loc == current))
|
||||
current = locate(min(max(x + xo, 1), world.maxx), min(max(y + yo, 1), world.maxy), z)
|
||||
if((x == 1 || x == world.maxx || y == 1 || y == world.maxy))
|
||||
del(src)
|
||||
delete()
|
||||
return
|
||||
step_towards(src, current)
|
||||
sleep(1)
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
for(var/mob/M in range(10, src))
|
||||
if(!M.stat && !istype(M, /mob/living/silicon/ai))\
|
||||
shake_camera(M, 3, 1)
|
||||
del(src)
|
||||
delete()
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user