Renormalize line endings and fix copyright headers again.

This commit is contained in:
Paul Chote
2011-04-07 21:15:42 +12:00
parent 1a49b46af1
commit b0425aff3b
144 changed files with 8076 additions and 7746 deletions

View File

@@ -6,11 +6,11 @@
* as published by the Free Software Foundation. For more information,
* see COPYING.
*/
#endregion
using System.Collections.Generic;
using System.Linq;
using OpenRA.FileFormats;
#endregion
using System.Collections.Generic;
using System.Linq;
using OpenRA.FileFormats;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
@@ -22,9 +22,9 @@ namespace OpenRA.Mods.RA
public void Tick(Actor self)
{
t += .25f;
}
static string[] excludePalettes = { "cursor", "chrome", "colorpicker" };
}
static string[] excludePalettes = { "cursor", "chrome", "colorpicker" };
static uint[] temp = new uint[7];
public void AdjustPalette(Dictionary<string,Palette> palettes)
@@ -32,15 +32,15 @@ namespace OpenRA.Mods.RA
foreach (var pal in palettes)
{
if (excludePalettes.Contains(pal.Key))
continue;
continue;
var colors = pal.Value.Values;
var rotate = (int)t % 7;
for (var i = 0; i < 7; i++)
temp[(rotate + i) % 7] = colors[0x60 + i];
for (var i = 0; i < 7; i++)
for (var i = 0; i < 7; i++)
temp[(rotate + i) % 7] = colors[0x60 + i];
for (var i = 0; i < 7; i++)
pal.Value.SetColor(0x60 + i, temp[i]);
}
}