Replace "Debug" prefix with "Battlefield Control" for selection messages.

This commit is contained in:
Paul Chote
2017-01-29 17:03:05 +00:00
parent 7f694d2740
commit f09b41b8b8

View File

@@ -250,12 +250,12 @@ namespace OpenRA.Mods.Common.Widgets
// Check if selecting actors on the screen has selected new units // Check if selecting actors on the screen has selected new units
if (ownUnitsOnScreen.Count > World.Selection.Actors.Count()) if (ownUnitsOnScreen.Count > World.Selection.Actors.Count())
Game.Debug("Selected across screen"); Game.AddChatLine(Color.White, "Battlefield Control", "Selected across screen");
else else
{ {
// Select actors in the world that have highest selection priority // Select actors in the world that have highest selection priority
ownUnitsOnScreen = SelectActorsInWorld(World, null, player).SubsetWithHighestSelectionPriority().ToList(); ownUnitsOnScreen = SelectActorsInWorld(World, null, player).SubsetWithHighestSelectionPriority().ToList();
Game.Debug("Selected across map"); Game.AddChatLine(Color.White, "Battlefield Control", "Selected across map");
} }
World.Selection.Combine(World, ownUnitsOnScreen, false, false); World.Selection.Combine(World, ownUnitsOnScreen, false, false);
@@ -276,12 +276,12 @@ namespace OpenRA.Mods.Common.Widgets
// Check if selecting actors on the screen has selected new units // Check if selecting actors on the screen has selected new units
if (newSelection.Count > World.Selection.Actors.Count()) if (newSelection.Count > World.Selection.Actors.Count())
Game.Debug("Selected across screen"); Game.AddChatLine(Color.White, "Battlefield Control", "Selected across screen");
else else
{ {
// Select actors in the world that have the same selection class as one of the already selected actors // Select actors in the world that have the same selection class as one of the already selected actors
newSelection = SelectActorsInWorld(World, selectedClasses, player).ToList(); newSelection = SelectActorsInWorld(World, selectedClasses, player).ToList();
Game.Debug("Selected across map"); Game.AddChatLine(Color.White, "Battlefield Control", "Selected across map");
} }
World.Selection.Combine(World, newSelection, true, false); World.Selection.Combine(World, newSelection, true, false);