Fixed a bunch of bugs in this one. There were some problems with projectiles not powering the singularity field generators, which is clearly a very, very bad thing!!

I also fixed some/a problems with conveyer belts.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1894 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2011-07-20 00:57:59 +00:00
parent 5a698e6924
commit 0cbf0df8d8
5 changed files with 18 additions and 16 deletions

View File

@@ -69,20 +69,21 @@
spawn(1) // slight delay to prevent infinite propagation due to map order
for(var/atom/movable/A in affecting)
if(!A.anchored)
if(ismob(A))
var/mob/M = A
if(M.buckled == src)
var/obj/machinery/conveyor/C = locate() in get_step(src, dir)
M.buckled = null
step(M,dir)
if(C)
M.buckled = C
if(isturf(A.loc)) // this is to prevent an ugly bug that forces a player to drop what they're holding if they recently pick it up from the conveyer belt
if(ismob(A))
var/mob/M = A
if(M.buckled == src)
var/obj/machinery/conveyor/C = locate() in get_step(src, dir)
M.buckled = null
step(M,dir)
if(C)
M.buckled = C
else
new/obj/item/weapon/cable_coil/cut(M.loc)
else
new/obj/item/weapon/cable_coil/cut(M.loc)
step(M,movedir)
else
step(M,movedir)
else
step(A,movedir)
step(A,movedir)
// attack with item, place item on conveyor