merged
This commit is contained in:
@@ -51,7 +51,9 @@ namespace OpenRa.Graphics
|
||||
if (terrainTypeColors == null)
|
||||
{
|
||||
var pal = new Palette(FileSystem.Open(world.Map.Theater + ".pal"));
|
||||
terrainTypeColors = new[] {theater.ToLowerInvariant() == "snow" ? 0xe3 :0x1a, 0x63, 0x2f, 0x1f, 0x14, 0x64, 0x1f, 0x68, 0x6b, 0x6d }
|
||||
terrainTypeColors = new[] {
|
||||
theater.ToLowerInvariant() == "snow" ? 0xe3 :0x1a,
|
||||
0x63, 0x2f, 0x1f, 0x14, 0x64, 0x1f, 0x68, 0x6b, 0x6d, 0x88 }
|
||||
.Select( a => Color.FromArgb(alpha, pal.GetColor(a) )).ToArray();
|
||||
|
||||
playerColors = Util.MakeArray<Color>( 8, b => Color.FromArgb(alpha, Chat.paletteColors[b]) );
|
||||
|
||||
@@ -107,8 +107,6 @@ namespace OpenRa.Graphics
|
||||
|
||||
public static Sprite GetImageFromCollection(Renderer renderer,string collection, string image)
|
||||
{
|
||||
|
||||
|
||||
// Cached sprite
|
||||
if (cachedSprites.ContainsKey(collection) && cachedSprites[collection].ContainsKey(image))
|
||||
return cachedSprites[collection][image];
|
||||
|
||||
Reference in New Issue
Block a user