Revert the new lighting system.

This commit is contained in:
alex-gh
2014-04-07 23:51:35 +02:00
parent fe0411ac1b
commit 521ad31671
55 changed files with 202 additions and 820 deletions

View File

@@ -33,7 +33,7 @@
playsound(src.loc, 'sound/machines/click.ogg', 15, 1, -3)
for(var/obj/O in src)
O.setloc(get_turf(src))
O.loc = get_turf(src)
icon_state = icon_opened
src.opened = 1
return 1
@@ -55,7 +55,7 @@
var/obj/structure/stool/bed/B = O
if(B.buckled_mob)
continue
O.setloc(src)
O.loc = src
itemcount++
icon_state = icon_closed
@@ -68,7 +68,7 @@
return
user.drop_item()
if(W)
W.setloc(src.loc)
W.loc = src.loc
else if(istype(W, /obj/item/weapon/packageWrap))
return
else if(istype(W, /obj/item/stack/cable_coil))
@@ -84,7 +84,7 @@
if(rigged)
user << "<span class='notice'>You attach [W] to [src].</span>"
user.drop_item()
W.setloc(src)
W.loc = src
return
else if(istype(W, /obj/item/weapon/wirecutters))
if(rigged)
@@ -385,12 +385,12 @@
continue
if(!S.anchored)
found = 1
S.setloc(src)
S.loc = src
break
if(!found)
for(var/obj/machinery/M in src.loc)
if(!M.anchored)
M.setloc(src)
M.loc = src
break
return
@@ -413,12 +413,12 @@
continue
if(!S.anchored)
found = 1
S.setloc(src)
S.loc = src
break
if(!found)
for(var/obj/machinery/M in src.loc)
if(!M.anchored)
M.setloc(src)
M.loc = src
break
return