Skip to content

Commit

Permalink
should be fine yeah?
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Jun 5, 2024
1 parent 83e1713 commit b4b5d81
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/game/machinery/cryopod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,21 @@ GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = li

var/mob/living/carbon/human/cryo_pod = occupant
if(cryo_pod.record_id_ref)
var/datum/data/record/medical = GLOB.data_core.medical[cryo_pod.record_id_ref]
var/datum/data/record/general = GLOB.data_core.general[cryo_pod.record_id_ref]
var/datum/data/record/security = GLOB.data_core.security[cryo_pod.record_id_ref]

GLOB.data_core.medical[cryo_pod.record_id_ref] = null
GLOB.data_core.general[cryo_pod.record_id_ref] = null
GLOB.data_core.security[cryo_pod.record_id_ref] = null

if (medical)
QDEL_NULL(medical)
if (general)
QDEL_NULL(general)
if (security)
QDEL_NULL(security)

icon_state = "body_scanner_open"
set_light(0)

Expand Down
11 changes: 11 additions & 0 deletions code/modules/admin/player_panel/actions/physical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,21 @@
mob_cryo = target

if(mob_cryo)
var/datum/data/record/medical = GLOB.data_core.medical[mob_cryo.record_id_ref]
var/datum/data/record/general = GLOB.data_core.general[mob_cryo.record_id_ref]
var/datum/data/record/security = GLOB.data_core.security[mob_cryo.record_id_ref]

GLOB.data_core.medical[mob_cryo.record_id_ref] = null
GLOB.data_core.general[mob_cryo.record_id_ref] = null
GLOB.data_core.security[mob_cryo.record_id_ref] = null

if (medical)
QDEL_NULL(medical)
if (general)
QDEL_NULL(general)
if (security)
QDEL_NULL(security)

if(target.key)
target.ghostize(FALSE)

Expand Down

0 comments on commit b4b5d81

Please sign in to comment.