Fix editor

This commit is contained in:
Paul Chote
2010-06-26 14:56:51 +12:00
parent 920b4f6856
commit 49d7833b04
2 changed files with 16 additions and 25 deletions

View File

@@ -136,8 +136,8 @@ namespace OpenRA.Editor
void DrawWithBrush()
{
// change the bits in the map
var tile = TileSet.tiles[Brush.N];
var template = TileSet.walk[Brush.N];
var tile = TileSet.Tiles[Brush.N];
var template = TileSet.Templates[Brush.N];
var pos = GetBrushLocation();
if (ModifierKeys == Keys.Shift)
@@ -294,7 +294,7 @@ namespace OpenRA.Editor
for (var j = 0; j < ChunkSize; j++)
{
var tr = Map.MapTiles[u * ChunkSize + i, v * ChunkSize + j];
var tile = TileSet.tiles[tr.type];
var tile = TileSet.Tiles[tr.type];
var index = (tr.image < tile.TileBitmapBytes.Count) ? tr.image : (byte)0;
var rawImage = tile.TileBitmapBytes[index];
for (var x = 0; x < 24; x++)