Permalink
Browse files

hack for schematic torches

  • Loading branch information...
1 parent 95d6409 commit 46700ea982b4ab17d905cdd61d2ce3e7be831a7b @BinaryConstruct BinaryConstruct committed Dec 9, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 TEdit/Tools/Clipboard/ClipboardBuffer.File.cs
@@ -26,7 +26,7 @@ public void Save(string filename)
if (Tiles[x, y].IsActive)
{
writer.Write(Tiles[x, y].Type);
- if (WorldSettings.Tiles[Tiles[x, y].Type].IsFramed)
+ if (WorldSettings.Tiles[Tiles[x, y].Type].IsFramed && Tiles[x, y].Type != 4)
{
writer.Write(Tiles[x, y].Frame.X);
writer.Write(Tiles[x, y].Frame.Y);
@@ -133,7 +133,8 @@ public static ClipboardBuffer Load(string filename)
if (tile.IsActive)
{
tile.Type = reader.ReadByte();
- if (WorldSettings.Tiles[tile.Type].IsFramed)
+
+ if (WorldSettings.Tiles[tile.Type].IsFramed && tile.Type != 4)
tile.Frame = new PointShort(reader.ReadInt16(), reader.ReadInt16());
else
tile.Frame = new PointShort(-1, -1);

0 comments on commit 46700ea

Please sign in to comment.