Fix custom terrain location

This commit is contained in:
Paul Chote
2010-07-22 10:43:10 +12:00
parent a234dd4382
commit 5f36933837

View File

@@ -102,7 +102,7 @@ namespace OpenRA.Graphics
var tt = t.GetTerrainType(xy);
if (tt != null)
{
*(c + (xy.Y * bitmapData.Stride >> 2) + xy.X) = world.TileSet.Terrain[tt].Color.ToArgb();
*(c + (y * bitmapData.Stride >> 2) + x) = world.TileSet.Terrain[tt].Color.ToArgb();
break;
}
}