Deprecate string format shorthand.
This commit is contained in:
committed by
abcdefg30
parent
1c2ce0dcc0
commit
65c0cf1065
@@ -96,15 +96,11 @@ namespace OpenRA.Traits
|
||||
.ToArray();
|
||||
|
||||
if (Footprint.Length == 0)
|
||||
throw new ArgumentException(("This frozen actor has no footprint.\n" +
|
||||
"Actor Name: {0}\n" +
|
||||
"Actor Location: {1}\n" +
|
||||
"Input footprint: [{2}]\n" +
|
||||
"Input footprint (after shroud.Contains): [{3}]")
|
||||
.F(actor.Info.Name,
|
||||
actor.Location.ToString(),
|
||||
footprint.Select(p => p.ToString()).JoinWith("|"),
|
||||
footprint.Select(p => shroud.Contains(p).ToString()).JoinWith("|")));
|
||||
throw new ArgumentException("This frozen actor has no footprint.\n" +
|
||||
$"Actor Name: {actor.Info.Name}\n" +
|
||||
$"Actor Location: {actor.Location}\n" +
|
||||
$"Input footprint: [{footprint.Select(p => p.ToString()).JoinWith("|")}]\n" +
|
||||
$"Input footprint (after shroud.Contains): [{footprint.Select(p => shroud.Contains(p).ToString()).JoinWith("|")}]");
|
||||
|
||||
CenterPosition = actor.CenterPosition;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user