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
This commit is contained in:
Kylerace
2022-12-19 16:48:46 -08:00
committed by GitHub
parent 94bd0e64f7
commit b4644e8024
+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()