mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
remove "failed to send message" popup from radio (#19184)
This commit is contained in:
parent
2e86f4c556
commit
f3b40197b9
2 changed files with 0 additions and 5 deletions
|
|
@ -103,7 +103,6 @@ public sealed class RadioSystem : EntitySystem
|
|||
|
||||
var speakerQuery = GetEntityQuery<RadioSpeakerComponent>();
|
||||
var radioQuery = EntityQueryEnumerator<ActiveRadioComponent, TransformComponent>();
|
||||
var sentAtLeastOnce = false;
|
||||
while (canSend && radioQuery.MoveNext(out var receiver, out var radio, out var transform))
|
||||
{
|
||||
if (!radio.Channels.Contains(channel.ID) || (TryComp<IntercomComponent>(receiver, out var intercom) && !intercom.SupportedChannels.Contains(channel.ID)))
|
||||
|
|
@ -126,10 +125,7 @@ public sealed class RadioSystem : EntitySystem
|
|||
|
||||
// send the message
|
||||
RaiseLocalEvent(receiver, ref ev);
|
||||
sentAtLeastOnce = true;
|
||||
}
|
||||
if (!sentAtLeastOnce)
|
||||
_popup.PopupEntity(Loc.GetString("failed-to-send-message"), messageSource, messageSource, PopupType.MediumCaution);
|
||||
|
||||
if (name != Name(messageSource))
|
||||
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"Radio message from {ToPrettyString(messageSource):user} as {name} on {channel.LocalizedName}: {message}");
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
failed-to-send-message = Failed to send message!
|
||||
Loading…
Add table
Reference in a new issue