Clean up style of files affected by the last commit.
This commit is contained in:
committed by
RoosterDragon
parent
f0f02dff5c
commit
9cbac2d5e1
@@ -18,9 +18,9 @@ namespace OpenRA.Graphics
|
||||
{
|
||||
public sealed class CursorProvider : IDisposable
|
||||
{
|
||||
HardwarePalette palette;
|
||||
Dictionary<string, CursorSequence> cursors;
|
||||
Cache<string, PaletteReference> palettes;
|
||||
readonly HardwarePalette palette = new HardwarePalette();
|
||||
readonly Dictionary<string, CursorSequence> cursors = new Dictionary<string, CursorSequence>();
|
||||
readonly Cache<string, PaletteReference> palettes;
|
||||
readonly SheetBuilder sheetBuilder;
|
||||
|
||||
public static bool CursorViewportZoomed { get { return Game.Settings.Graphics.CursorDouble && Game.Settings.Graphics.PixelDouble; } }
|
||||
@@ -29,7 +29,6 @@ namespace OpenRA.Graphics
|
||||
{
|
||||
var sequenceFiles = modData.Manifest.Cursors;
|
||||
|
||||
cursors = new Dictionary<string, CursorSequence>();
|
||||
palettes = new Cache<string, PaletteReference>(CreatePaletteReference);
|
||||
var sequences = new MiniYaml(null, sequenceFiles.Select(s => MiniYaml.FromFile(s)).Aggregate(MiniYaml.MergeLiberal));
|
||||
var shadowIndex = new int[] { };
|
||||
@@ -42,7 +41,6 @@ namespace OpenRA.Graphics
|
||||
out shadowIndex[shadowIndex.Length - 1]);
|
||||
}
|
||||
|
||||
palette = new HardwarePalette();
|
||||
foreach (var p in nodesDict["Palettes"].Nodes)
|
||||
palette.AddPalette(p.Key, new ImmutablePalette(GlobalFileSystem.Open(p.Value.Value), shadowIndex), false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user