From 526b66eee4356dc65cb4ad670b220c73c4a67e49 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 4 Sep 2022 06:06:34 +1000 Subject: [PATCH] Fixes portal runtime and maybe fixes synthsong runtime --- code/modules/instruments/songs/play_synthesized.dm | 4 ++-- code/modules/multiz/portals_vr.dm | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/instruments/songs/play_synthesized.dm b/code/modules/instruments/songs/play_synthesized.dm index 63369228aa..a838a75615 100644 --- a/code/modules/instruments/songs/play_synthesized.dm +++ b/code/modules/instruments/songs/play_synthesized.dm @@ -141,8 +141,8 @@ if(dead) channels_playing -= channel channels_idle += channel - for(var/mob/M as anything in hearing_mobs) + for(var/mob/M in hearing_mobs) M.stop_sound_channel(channelnumber) else - for(var/mob/M as anything in hearing_mobs) + for(var/mob/M in hearing_mobs) M.set_sound_channel_volume(channelnumber, (current_volume * 0.01) * volume * using_instrument.volume_multiplier) diff --git a/code/modules/multiz/portals_vr.dm b/code/modules/multiz/portals_vr.dm index 443134c4dd..c0047f85f6 100644 --- a/code/modules/multiz/portals_vr.dm +++ b/code/modules/multiz/portals_vr.dm @@ -67,7 +67,8 @@ if(response == "Select Type") icon_state = select_portal_subtype(user) return - message_admins("The [src]([x],[y],[z]) was given [target]([target.x],[target.y],[target.z]) as a target, and should be ready to use.") + if(target) + message_admins("The [src]([x],[y],[z]) was given [target]([target.x],[target.y],[target.z]) as a target, and should be ready to use.") else if(user?.client?.holder) src.teleport(user) else return @@ -146,7 +147,7 @@ P.target = null qdel_null(target) . = ..() - + /obj/structure/portal_target name = "portal destination" desc = "you shouldn't see this unless you're a ghost"