diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index 7e34ae20307..674a9c7b3ee 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -127,7 +127,7 @@ /// Like add_image_to_client, but will add the image from a list of clients /proc/add_image_to_clients(image/image_to_remove, list/show_to) - for(var/client/add_to as anything in show_to) + for(var/client/add_to in show_to) add_to.images += image_to_remove /// Removes an image from a client's `.images`. Useful as a callback. @@ -136,7 +136,7 @@ /// Like remove_image_from_client, but will remove the image from a list of clients /proc/remove_image_from_clients(image/image_to_remove, list/hide_from) - for(var/client/remove_from as anything in hide_from) + for(var/client/remove_from in hide_from) remove_from.images -= image_to_remove diff --git a/code/modules/vehicles/mecha/_mecha.dm b/code/modules/vehicles/mecha/_mecha.dm index f2743bba32f..eb7f4ef59b0 100644 --- a/code/modules/vehicles/mecha/_mecha.dm +++ b/code/modules/vehicles/mecha/_mecha.dm @@ -676,11 +676,13 @@ ///Displays a special speech bubble when someone inside the mecha speaks /obj/vehicle/sealed/mecha/proc/display_speech_bubble(datum/source, list/speech_args) SIGNAL_HANDLER - var/list/speech_bubble_recipients = get_hearers_in_view(7,src) - for(var/mob/M in speech_bubble_recipients) - if(M.client) - speech_bubble_recipients.Add(M.client) - INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(flick_overlay_global), image('icons/mob/effects/talk.dmi', src, "machine[say_test(speech_args[SPEECH_MESSAGE])]",MOB_LAYER+1), speech_bubble_recipients, 30) + var/list/speech_bubble_recipients = list() + for(var/mob/listener in get_hearers_in_view(7, src)) + if(listener.client) + speech_bubble_recipients += listener.client + + var/image/mech_speech = image('icons/mob/effects/talk.dmi', src, "machine[say_test(speech_args[SPEECH_MESSAGE])]",MOB_LAYER+1) + INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(flick_overlay_global), mech_speech, speech_bubble_recipients, 3 SECONDS) /////////////////////////