Properly unreg's turf changed when space openspace is deleted (#76501)

## About The Pull Request

Openspace tracks the turf below for starlight purposes The trouble is if
a turf is replaced by another, all its signal registers still persist

I forgot about this, so we'd get runtimes when a
/turf/open/space/openspace was replaced, and the turf below it changed

## Why It's Good For The Game

Less random runtimes
This commit is contained in:
LemonInTheDark
2023-07-07 16:02:18 -07:00
committed by GitHub
parent c5aa899a80
commit cfc4e960bc
5 changed files with 25 additions and 11 deletions
@@ -101,6 +101,9 @@ GLOBAL_VAR_INIT(running_create_and_destroy, FALSE)
ignore += subtypesof(/obj/machinery/airlock_controller)
// Always ought to have an associated escape menu. Any references it could possibly hold would need one regardless.
ignore += subtypesof(/atom/movable/screen/escape_menu)
// Can't spawn openspace above nothing, it'll get pissy at me
ignore += typesof(/turf/open/space/openspace)
ignore += typesof(/turf/open/openspace)
var/list/cached_contents = spawn_at.contents.Copy()
var/original_turf_type = spawn_at.type
@@ -36,5 +36,8 @@
/// Checks for bad icon / icon state setups in cooking crafting menu
/datum/unit_test/focus_only/bad_cooking_crafting_icons
/// Ensures openspace never spawns on the bottom of a z stack
/datum/unit_test/focus_only/openspace_clear
/// Checks to ensure that variables expected to exist in a job datum (for config reasons) actually exist
/datum/unit_test/focus_only/missing_job_datum_variables