Revert previous commit.
Double check data structure, SendTileSquare does not attempt to save bandwidth.
This commit is contained in:
parent
fc7f20566e
commit
d77fc4d567
2 changed files with 0 additions and 13 deletions
|
|
@ -221,13 +221,6 @@ namespace TShockAPI
|
|||
for (int y = 0; y < size; y++)
|
||||
{
|
||||
tiles[x, y] = new NetTile(args.Data);
|
||||
if (tiles[x, y].SameTiles > 0)
|
||||
{
|
||||
var num = tiles[x, y].SameTiles;
|
||||
var tile = tiles[x, y];
|
||||
for (y++; y < y + num + 1; y++)
|
||||
tiles[x, y] = tile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ namespace TShockAPI.Net
|
|||
public bool HasLiquid { get { return Liquid > 0; } }
|
||||
public bool FrameImportant { get { return Main.tileFrameImportant[Type]; } }
|
||||
|
||||
public int SameTiles { get; set; }
|
||||
|
||||
public NetTile()
|
||||
{
|
||||
Active = false;
|
||||
|
|
@ -94,8 +92,6 @@ namespace TShockAPI.Net
|
|||
stream.WriteInt8(Liquid);
|
||||
stream.WriteBoolean(Lava);
|
||||
}
|
||||
|
||||
stream.WriteInt16(1); // Screw trying to figure out how many tiles are the same
|
||||
}
|
||||
|
||||
public void Unpack(Stream stream)
|
||||
|
|
@ -126,8 +122,6 @@ namespace TShockAPI.Net
|
|||
|
||||
if (flags.HasFlag(TileFlags.Wire))
|
||||
Wire = true;
|
||||
|
||||
SameTiles = stream.ReadInt16();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue