Ensure TargetLineRenderable width and marker size don't get lost.

By making the constructor take non-optional parameters, this highlights some calls sites which were forgetting to set these values. These are now fixed.

Set the path debug to have a marker size of 2 for better visibility.
This commit is contained in:
RoosterDragon
2021-09-25 12:57:27 +01:00
committed by Paul Chote
parent 9d4d4bb924
commit 3a7aeb5324
3 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ namespace OpenRA.Mods.Common.Traits.Render
yield return r;
if (selected && self.World.LocalPlayer != null && self.World.LocalPlayer.PlayerActor.Trait<DeveloperMode>().PathDebug)
yield return new TargetLineRenderable(ActivityTargetPath(self), Color.Green);
yield return new TargetLineRenderable(ActivityTargetPath(self), Color.Green, 1, 2);
// Hide decorations for spectators that zoom out further than the normal minimum level
// This avoids graphical glitches with pip rows and icons overlapping the selection box