Mining turf overlays should be properly placed now

This commit is contained in:
Anewbe
2018-06-06 18:09:07 -05:00
parent eb0ead6785
commit 7d23980df4

View File

@@ -153,7 +153,7 @@ var/list/mining_overlay_cache = list()
if(excav_overlay)
add_overlay(excav_overlay)
//We are a sand floor
else
name = "sand"
@@ -167,12 +167,6 @@ var/list/mining_overlay_cache = list()
for(var/direction in cardinal)
if(istype(get_step(src, direction), /turf/space) && !istype(get_step(src, direction), /turf/space/cracked_asteroid))
add_overlay(get_cached_border("asteroid_edge",direction,icon,"asteroid_edges", 0))
//Or any time
else
var/turf/simulated/mineral/M = get_step(src, direction)
if(istype(M) && M.density)
add_overlay(get_cached_border("rock_side",direction,'icons/turf/walls.dmi',"rock_side"))
if(overlay_detail)
add_overlay('icons/turf/flooring/decals.dmi',overlay_detail)