mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
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:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user