/turf/simulated/water/update_icon() clears underlays before adding the new one

This commit is contained in:
atermonera
2018-07-11 00:08:25 -07:00
parent 535cca9d0e
commit f9b3af53d7

View File

@@ -19,6 +19,7 @@
..() // To get the edges.
icon_state = water_state
var/image/floorbed_sprite = image(icon = 'icons/turf/outdoors.dmi', icon_state = under_state)
underlays.Cut() // To clear the old underlay, so the list doesn't expand infinitely
underlays.Add(floorbed_sprite)
update_icon_edge()