mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-01 04:53:42 +00:00
Merge pull request #4394 from VOREStation/upstream-merge-5652
[MIRROR] Fixes missing sprites when excavating rocks
This commit is contained in:
@@ -452,6 +452,8 @@ var/list/mining_overlay_cache = list()
|
|||||||
//update overlays displaying excavation level
|
//update overlays displaying excavation level
|
||||||
if( !(excav_overlay && excavation_level > 0) || update_excav_overlay )
|
if( !(excav_overlay && excavation_level > 0) || update_excav_overlay )
|
||||||
var/excav_quadrant = round(excavation_level / 25) + 1
|
var/excav_quadrant = round(excavation_level / 25) + 1
|
||||||
|
if(excav_quadrant > 5)
|
||||||
|
excav_quadrant = 5
|
||||||
cut_overlay(excav_overlay)
|
cut_overlay(excav_overlay)
|
||||||
excav_overlay = "overlay_excv[excav_quadrant]_[rand(1,3)]"
|
excav_overlay = "overlay_excv[excav_quadrant]_[rand(1,3)]"
|
||||||
add_overlay(excav_overlay)
|
add_overlay(excav_overlay)
|
||||||
|
|||||||
Reference in New Issue
Block a user