This commit is contained in:
Paul Chote
2011-02-11 19:17:27 +13:00
parent 5f6d2df503
commit c5d410938d
2 changed files with 6 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Editor
= new TileReference<byte, byte>
{
type = (byte)Resource.Info.ResourceType,
index = (byte)Resource.Value
index = (byte)random.Next(Resource.Info.SpriteNames.Length)
};
var ch = new int2((surface.GetBrushLocation().X) / Surface.ChunkSize,