Skip to content

Commit

Permalink
teehee
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Jun 5, 2024
1 parent b4b5d81 commit c661de7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
21 changes: 7 additions & 14 deletions code/game/machinery/cryopod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,20 +355,13 @@ 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)
QDEL_NULL(GLOB.data_core.medical[cryo_pod.record_id_ref])
QDEL_NULL(GLOB.data_core.general[cryo_pod.record_id_ref])
QDEL_NULL(GLOB.data_core.security[cryo_pod.record_id_ref])
GLOB.data_core.medical -= cryo_pod.record_id_ref
GLOB.data_core.general -= cryo_pod.record_id_ref
GLOB.data_core.security -= cryo_pod.record_id_ref


icon_state = "body_scanner_open"
set_light(0)
Expand Down
20 changes: 6 additions & 14 deletions code/modules/admin/player_panel/actions/physical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,12 @@
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)
QDEL_NULL(GLOB.data_core.medical[mob_cryo.record_id_ref])
QDEL_NULL(GLOB.data_core.general[mob_cryo.record_id_ref])
QDEL_NULL(GLOB.data_core.security[mob_cryo.record_id_ref])
GLOB.data_core.medical -= mob_cryo.record_id_ref
GLOB.data_core.general -= mob_cryo.record_id_ref
GLOB.data_core.security -= mob_cryo.record_id_ref

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

0 comments on commit c661de7

Please sign in to comment.