From 06595df7db55b45b21535d23e5eb5bfc1e581b40 Mon Sep 17 00:00:00 2001 From: Dax Dupont Date: Sun, 20 May 2018 14:43:37 +0200 Subject: [PATCH] VR fix --- code/modules/VR/vr_human.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/modules/VR/vr_human.dm b/code/modules/VR/vr_human.dm index a0d434c6ba7..cad7204f86c 100644 --- a/code/modules/VR/vr_human.dm +++ b/code/modules/VR/vr_human.dm @@ -36,12 +36,13 @@ /mob/living/carbon/human/virtual_reality/proc/revert_to_reality(deathchecks = TRUE) if(real_mind && mind) real_mind.current.ckey = ckey - if(deathchecks) - if(vr_sleeper) - if(vr_sleeper.you_die_in_the_game_you_die_for_real) - real_mind.current.death(0) - vr_sleeper.vr_human = null - vr_sleeper = null + real_mind.current.stop_sound_channel(CHANNEL_HEARTBEAT) + if(deathchecks && vr_sleeper) + if(vr_sleeper.you_die_in_the_game_you_die_for_real) + real_mind.current.death(0) + if(deathchecks && vr_sleeper) + vr_sleeper.vr_human = null + vr_sleeper = null real_mind = null /datum/action/quit_vr