Fixes missing sprites when excavating rocks

This commit is contained in:
Cerebulon
2018-10-10 10:56:23 +01:00
parent 0a46ed7feb
commit cddaa5bd46

View File

@@ -452,6 +452,8 @@ var/list/mining_overlay_cache = list()
//update overlays displaying excavation level
if( !(excav_overlay && excavation_level > 0) || update_excav_overlay )
var/excav_quadrant = round(excavation_level / 25) + 1
if(excav_quadrant > 5)
excav_quadrant = 5
cut_overlay(excav_overlay)
excav_overlay = "overlay_excv[excav_quadrant]_[rand(1,3)]"
add_overlay(excav_overlay)