Quick bugfix for falsewalls, defined an update_icon() for them that is called by smoothwalls to keep the icons from de-syncing.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3989 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
sieve32@gmail.com
2012-07-05 19:21:27 +00:00
parent 515d1652dd
commit 93e4d2c1ff
2 changed files with 9 additions and 0 deletions

View File

@@ -538,6 +538,14 @@ obj/structure/meteorhit(obj/O as obj)
radiate() radiate()
..() ..()
/obj/structure/falsewall/update_icon()//Calling icon_update will refresh the smoothwalls if it's closed, otherwise it will make sure the icon is correct if it's open
..()
if(density)
icon_state = "[mineral]0"
src.relativewall()
else
icon_state = "[mineral]fwall_open"
/obj/structure/falserwall/ /obj/structure/falserwall/
attack_hand(mob/user as mob) attack_hand(mob/user as mob)
if(density) if(density)

View File

@@ -82,6 +82,7 @@
W.relativewall() W.relativewall()
for(var/obj/structure/falsewall/W in range(src,1)) for(var/obj/structure/falsewall/W in range(src,1))
W.relativewall() W.relativewall()
W.update_icon()//Refreshes the wall to make sure the icons don't desync
for(var/obj/structure/falserwall/W in range(src,1)) for(var/obj/structure/falserwall/W in range(src,1))
W.relativewall() W.relativewall()
return return