Merge pull request #5333 from Anewbe/mining_turf_tweak

Mining turf overlays should be properly placed now
This commit is contained in:
Atermonera
2018-06-09 12:42:10 -07:00
committed by VirgoBot
parent 5db710c434
commit aca81ab59c

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)