mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Preserve decals between prying flooring up and putting it back down.
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
'sound/effects/footstep/plating4.ogg',
|
'sound/effects/footstep/plating4.ogg',
|
||||||
'sound/effects/footstep/plating5.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.
|
// Flooring data.
|
||||||
var/flooring_override
|
var/flooring_override
|
||||||
var/initial_flooring
|
var/initial_flooring
|
||||||
@@ -46,6 +48,11 @@
|
|||||||
make_plating(defer_icon_update = 1)
|
make_plating(defer_icon_update = 1)
|
||||||
flooring = newflooring
|
flooring = newflooring
|
||||||
footstep_sounds = newflooring.footstep_sounds
|
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)
|
update_icon(1)
|
||||||
levelupdate()
|
levelupdate()
|
||||||
|
|
||||||
@@ -55,7 +62,10 @@
|
|||||||
|
|
||||||
overlays.Cut()
|
overlays.Cut()
|
||||||
if(islist(decals))
|
if(islist(decals))
|
||||||
decals.Cut()
|
// VOREStation Edit - Don't forget decals when pried up
|
||||||
|
if(flooring)
|
||||||
|
old_decals = decals
|
||||||
|
// VOREStation Edit End
|
||||||
decals = null
|
decals = null
|
||||||
|
|
||||||
name = base_name
|
name = base_name
|
||||||
|
|||||||
Reference in New Issue
Block a user