Make sure braces for multi-line statements are on their own lines.

This commit is contained in:
Paul Chote
2019-06-08 15:04:36 +01:00
committed by reaperrr
parent c89f8dbb89
commit ebf2ce32c0
34 changed files with 180 additions and 91 deletions

View File

@@ -101,18 +101,21 @@ namespace OpenRA.Mods.Cnc.Graphics
public float[] Bounds(uint frame)
{
var ret = new float[] { float.MaxValue, float.MaxValue, float.MaxValue,
float.MinValue, float.MinValue, float.MinValue };
var ret = new[]
{
float.MaxValue, float.MaxValue, float.MaxValue,
float.MinValue, float.MinValue, float.MinValue
};
for (uint j = 0; j < limbs; j++)
{
var l = limbData[j];
var b = new float[]
var b = new[]
{
0, 0, 0,
(l.Bounds[3] - l.Bounds[0]),
(l.Bounds[4] - l.Bounds[1]),
(l.Bounds[5] - l.Bounds[2])
l.Bounds[3] - l.Bounds[0],
l.Bounds[4] - l.Bounds[1],
l.Bounds[5] - l.Bounds[2]
};
// Calculate limb bounding box