[MIRROR] fixes holodecks directly changing baseturfs [MDB IGNORE] (#18232)

* fixes holodecks directly changing baseturfs (#72067)

## About The Pull Request
i did this with #59355 to fix a bug but it breaks guarantees with
baseturfs. now they arent broken.
## Why It's Good For The Game
this probably causes bugs under some conditions

* fixes holodecks directly changing baseturfs

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
SkyratBot
2022-12-28 23:26:39 -08:00
committed by GitHub
co-authored by Kylerace
parent 1575b2ee5d
commit a145dfeecb
+4 -2
View File
@@ -263,8 +263,10 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
for(var/turf/closed/holo_turf in linked)
for(var/baseturf in holo_turf.baseturfs)
if(ispath(baseturf, /turf/open/floor/holofloor))
holo_turf.baseturfs -= baseturf
holo_turf.baseturfs += /turf/open/floor/holofloor/plating
var/list/copy = holo_turf.baseturfs.Copy()
copy -= baseturf
copy += /turf/open/floor/holofloor/plating
holo_turf.baseturfs = baseturfs_string_list(copy, holo_turf)
///finalizes objects in the spawned list
/obj/machinery/computer/holodeck/proc/finish_spawn()