makes benches a subtype of tables

This commit is contained in:
SinTwo
2016-06-29 17:52:27 -04:00
parent c7db22b985
commit a7aa2a7f33
7 changed files with 26 additions and 351 deletions

View File

@@ -3,9 +3,6 @@
for(var/obj/structure/table/T in view(src, 1))
T.update_connections()
T.update_icon()
for(var/obj/structure/bench/T in view(src, 1))
T.update_connections()
T.update_icon()
/obj/structure/window/Destroy()
var/oldloc = loc
@@ -13,9 +10,6 @@
for(var/obj/structure/table/T in view(oldloc, 1))
T.update_connections()
T.update_icon()
for(var/obj/structure/bench/T in view(oldloc, 1))
T.update_connections()
T.update_icon()
loc=oldloc
..()
@@ -24,8 +18,5 @@
. = ..()
if(loc != oldloc)
for(var/obj/structure/table/T in view(oldloc, 1) | view(loc, 1))
T.update_connections()
T.update_icon()
for(var/obj/structure/bench/T in view(oldloc, 1) | view(loc, 1))
T.update_connections()
T.update_icon()