clean up whitespace in CncWaterPaletteRotation
This commit is contained in:
@@ -18,12 +18,9 @@ namespace OpenRA.Mods.Cnc
|
||||
|
||||
class CncWaterPaletteRotation : ITick, IPaletteModifier
|
||||
{
|
||||
|
||||
float t = 0;
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
t += .25f;
|
||||
}
|
||||
|
||||
public void Tick(Actor self) { t += .25f; }
|
||||
|
||||
public void AdjustPalette(Dictionary<string,Palette> palettes)
|
||||
{
|
||||
@@ -32,6 +29,7 @@ namespace OpenRA.Mods.Cnc
|
||||
|
||||
var copy = (uint[])pal.Values.Clone();
|
||||
var rotate = (int)t % 7;
|
||||
|
||||
for (int i = 0; i < 7; i++)
|
||||
pal.SetColor(0x20 + (rotate + i) % 7, copy[0x20 + i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user