private void writeTile(Tile tile) {
		writeByte((byte) 0xFF);
		writePoint(tile.origin);
		writeByte((byte) tile.floor);
		writeByte(tile.biome);
		//if (tile.wall)
			//writeByte(Tiles.STONE_WALL);		//HARDCODED: if the tile is a wall it's type is set to 32.
		//else
		writeByte(tile.tile);
		//writeBordersData(tile);
		writeByte(tile.borderFlagOne);
		writeByte(tile.borderFlagTwo);
		if (tile.object != null)
			writeByte(tile.object.getType());
		else writeByte(ObjectType.NO_OBJECT.getByteValue());
	}