From a3f79503edb7f4e22755a39fd6a87257e0647111 Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Sun, 14 Jun 2020 16:48:04 -0600 Subject: [PATCH] Fix Lua DisplaySystemMessage writing twice --- OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs index 05a6b43025..6117643708 100644 --- a/OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/MediaGlobal.cs @@ -206,8 +206,8 @@ namespace OpenRA.Mods.Common.Scripting if (string.IsNullOrEmpty(prefix)) Game.AddSystemLine(text); - - Game.AddSystemLine(prefix, text); + else + Game.AddSystemLine(prefix, text); } [Desc("Displays a debug message to the player, if \"Show Map Debug Messages\" is checked in the settings.")]