Preserve decals between prying flooring up and putting it back down.

This commit is contained in:
Leshana
2017-05-09 21:31:58 -04:00
parent 99f55ce746
commit 4ca3ea90e1

View File

@@ -20,6 +20,8 @@
'sound/effects/footstep/plating4.ogg',
'sound/effects/footstep/plating5.ogg'))
var/list/old_decals = null // VOREStation Edit - Remember what decals we had between being pried up and replaced.
// Flooring data.
var/flooring_override
var/initial_flooring
@@ -46,6 +48,11 @@
make_plating(defer_icon_update = 1)
flooring = newflooring
footstep_sounds = newflooring.footstep_sounds
// VOREStation Edit - Remember decals from before we were pried up
if(islist(old_decals))
decals = old_decals
old_decals = null
// VOREStation Edit End
update_icon(1)
levelupdate()
@@ -55,7 +62,10 @@
overlays.Cut()
if(islist(decals))
decals.Cut()
// VOREStation Edit - Don't forget decals when pried up
if(flooring)
old_decals = decals
// VOREStation Edit End
decals = null
name = base_name