mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 12:43:13 +00:00
(hopefully) fixes a runtime causing the server to shit itself and crash immediately
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3190 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -372,17 +372,18 @@
|
|||||||
|
|
||||||
var/turf/target
|
var/turf/target
|
||||||
playsound(src, 'hiss.ogg', 50, 0, 0)
|
playsound(src, 'hiss.ogg', 50, 0, 0)
|
||||||
for(var/atom/movable/AM in H)
|
if(H) // Somehow, someone managed to flush a window which broke mid-transit and caused the disposal to go in an infinite loop trying to expel null, hopefully this fixes it
|
||||||
target = get_offset_target_turf(src.loc, rand(5)-rand(5), rand(5)-rand(5))
|
for(var/atom/movable/AM in H)
|
||||||
|
target = get_offset_target_turf(src.loc, rand(5)-rand(5), rand(5)-rand(5))
|
||||||
|
|
||||||
AM.loc = src.loc
|
AM.loc = src.loc
|
||||||
AM.pipe_eject(0)
|
AM.pipe_eject(0)
|
||||||
spawn(1)
|
spawn(1)
|
||||||
if(AM)
|
if(AM)
|
||||||
AM.throw_at(target, 5, 1)
|
AM.throw_at(target, 5, 1)
|
||||||
|
|
||||||
H.vent_gas(loc)
|
H.vent_gas(loc)
|
||||||
del(H)
|
del(H)
|
||||||
|
|
||||||
CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
||||||
if (istype(mover,/obj/item))
|
if (istype(mover,/obj/item))
|
||||||
@@ -738,29 +739,31 @@
|
|||||||
target = get_ranged_target_turf(T, direction, 10)
|
target = get_ranged_target_turf(T, direction, 10)
|
||||||
|
|
||||||
playsound(src, 'hiss.ogg', 50, 0, 0)
|
playsound(src, 'hiss.ogg', 50, 0, 0)
|
||||||
for(var/atom/movable/AM in H)
|
if(H)
|
||||||
AM.loc = T
|
for(var/atom/movable/AM in H)
|
||||||
AM.pipe_eject(direction)
|
AM.loc = T
|
||||||
spawn(1)
|
AM.pipe_eject(direction)
|
||||||
if(AM)
|
spawn(1)
|
||||||
AM.throw_at(target, 100, 1)
|
if(AM)
|
||||||
H.vent_gas(T)
|
AM.throw_at(target, 100, 1)
|
||||||
del(H)
|
H.vent_gas(T)
|
||||||
|
del(H)
|
||||||
|
|
||||||
else // no specified direction, so throw in random direction
|
else // no specified direction, so throw in random direction
|
||||||
|
|
||||||
playsound(src, 'hiss.ogg', 50, 0, 0)
|
playsound(src, 'hiss.ogg', 50, 0, 0)
|
||||||
for(var/atom/movable/AM in H)
|
if(H)
|
||||||
target = get_offset_target_turf(T, rand(5)-rand(5), rand(5)-rand(5))
|
for(var/atom/movable/AM in H)
|
||||||
|
target = get_offset_target_turf(T, rand(5)-rand(5), rand(5)-rand(5))
|
||||||
|
|
||||||
AM.loc = T
|
AM.loc = T
|
||||||
AM.pipe_eject(0)
|
AM.pipe_eject(0)
|
||||||
spawn(1)
|
spawn(1)
|
||||||
if(AM)
|
if(AM)
|
||||||
AM.throw_at(target, 5, 1)
|
AM.throw_at(target, 5, 1)
|
||||||
|
|
||||||
H.vent_gas(T) // all gas vent to turf
|
H.vent_gas(T) // all gas vent to turf
|
||||||
del(H)
|
del(H)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1174,14 +1177,14 @@
|
|||||||
sleep(20) //wait until correct animation frame
|
sleep(20) //wait until correct animation frame
|
||||||
playsound(src, 'hiss.ogg', 50, 0, 0)
|
playsound(src, 'hiss.ogg', 50, 0, 0)
|
||||||
|
|
||||||
|
if(H)
|
||||||
for(var/atom/movable/AM in H)
|
for(var/atom/movable/AM in H)
|
||||||
AM.loc = src.loc
|
AM.loc = src.loc
|
||||||
AM.pipe_eject(dir)
|
AM.pipe_eject(dir)
|
||||||
spawn(1)
|
spawn(1)
|
||||||
AM.throw_at(target, 3, 1)
|
AM.throw_at(target, 3, 1)
|
||||||
H.vent_gas(src.loc)
|
H.vent_gas(src.loc)
|
||||||
del(H)
|
del(H)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user