From 64c95a2fae331c0e4dd1a416efddb2b4998ba704 Mon Sep 17 00:00:00 2001 From: Miauw Date: Wed, 3 Sep 2014 20:29:12 +0200 Subject: [PATCH] Worn ID won't display on station-bounced broadcasts. Fixed #4650 --- code/game/objects/items/devices/radio/radio.dm | 16 +++++++--------- code/modules/mob/living/carbon/human/say.dm | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 9ab97b5cb93..8c31edae6cb 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -245,7 +245,6 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use //#### Tagging the signal with all appropriate identity values ####// // ||-- The mob's name identity --|| - var/displayname = M.name // grab the display name (name you get when you hover over someone's icon) var/real_name = M.name // mob's real name var/mobkey = "none" // player key associated with mob var/voicemask = 0 // the speaker is wearing a voice mask @@ -265,7 +264,6 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use var/datum/data/record/findjob = find_record("name", voice, data_core.general) if(voice != real_name) - displayname = voice voicemask = 1 if(findjob) jobname = findjob.fields["rank"] @@ -310,7 +308,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use "mob" = M, // store a reference to the mob "mobtype" = M.type, // the mob's type "realname" = real_name, // the mob's real name - "name" = voice, // the mob's display name + "name" = voice, // the mob's voice name "job" = jobname, // the mob's job "key" = mobkey, // the mob's key "vmask" = voicemask, // 1 if the mob is using a voice gas mask @@ -356,17 +354,17 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use /* --- Try to send a normal subspace broadcast first */ signal.data = list( - "mob" = M, // store a reference to the mob + "mob" = M, // store a reference to the mob "mobtype" = M.type, // the mob's type "realname" = real_name, // the mob's real name - "name" = displayname, // the mob's display name + "name" = voice, // the mob's voice name "job" = jobname, // the mob's job "key" = mobkey, // the mob's key "vmask" = voicemask, // 1 if the mob is using a voice gas mas - "compression" = 0, // uncompressed radio signal - "message" = message, // the actual sent message - "radio" = src, // stores the radio used for transmission + "compression" = 0, // uncompressed radio signal + "message" = message, // the actual sent message + "radio" = src, // stores the radio used for transmission "slow" = 0, "traffic" = 0, "type" = 0, @@ -388,7 +386,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use // Oh my god; the comms are down or something because the signal hasn't been broadcasted yet in our level. // Send a mundane broadcast with limited targets: Broadcast_Message(M, voicemask, - src, message, displayname, jobname, real_name, + src, message, voice, jobname, real_name, filter_type, signal.data["compression"], list(position.z), freq) /obj/item/device/radio/Hear(message, atom/movable/speaker, message_langs, raw_message, radio_freq) diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm index 205decd4442..1d1faa53c25 100644 --- a/code/modules/mob/living/carbon/human/say.dm +++ b/code/modules/mob/living/carbon/human/say.dm @@ -52,7 +52,7 @@ if(V.vchange) return V.voice else - return name + return real_name if(mind && mind.changeling && mind.changeling.mimicing) return mind.changeling.mimicing if(GetSpecialVoice())