34934 {
34935 int num = x - 2;
34939 if (num < 0)
34940 {
34941 return false;
34942 }
34943 if (
num2 > Main.maxTilesX)
34944 {
34945 return false;
34946 }
34948 {
34949 return false;
34950 }
34951 if (
num4 > Main.maxTilesY)
34952 {
34953 return false;
34954 }
34955 for (
int i = num;
i <
num2;
i++)
34956 {
34958 {
34959 if (Main.tile[i,
j] ==
null)
34960 {
34961 Main.tile[
i,
j] =
new Tile();
34962 }
34963 }
34964 }
34969 {
34971 {
34974 }
34975 else if (Main.tile[x, y - 1].nactive() && Main.tileSolid[Main.tile[x, y - 1].type] && !Main.tileSolidTop[Main.tile[x, y - 1].type] && Main.tile[x + 1, y - 1].nactive() && Main.tileSolid[Main.tile[x + 1, y - 1].type] && !Main.tileSolidTop[Main.tile[x + 1, y - 1].type])
34976 {
34978 }
34979 else if (Main.tile[x - 1, y].nactive() && Main.tileSolid[Main.tile[x - 1, y].type] && !Main.tileSolidTop[Main.tile[x - 1, y].type] && !Main.tileNoAttach[Main.tile[x - 1, y].type] && Main.tile[x - 1, y + 1].nactive() && Main.tileSolid[Main.tile[x - 1, y + 1].type] && !Main.tileSolidTop[Main.tile[x - 1, y + 1].type] && !Main.tileNoAttach[Main.tile[x - 1, y + 1].type])
34980 {
34982 }
34983 else if (Main.tile[x + 1, y].nactive() && Main.tileSolid[Main.tile[x + 1, y].type] && !Main.tileSolidTop[Main.tile[x + 1, y].type] && !Main.tileNoAttach[Main.tile[x + 1, y].type] && Main.tile[x + 1, y + 1].nactive() && Main.tileSolid[Main.tile[x + 1, y + 1].type] && !Main.tileSolidTop[Main.tile[x + 1, y + 1].type] && !Main.tileNoAttach[Main.tile[x + 1, y + 1].type])
34984 {
34987 }
34988 else
34989 {
34990 if (Main.tile[
num5,
num6].wall <= 0 || Main.tile[
num5 + 1,
num6].wall <= 0 || Main.tile[
num5,
num6 + 1].wall <= 0 || Main.tile[
num5 + 1,
num6 + 1].wall <= 0)
34991 {
34992 return false;
34993 }
34995 }
34996 }
34998 {
34999 return false;
35000 }
35002 for (
int k = 0;
k < 2;
k++)
35003 {
35004 for (
int l = 0;
l < 2;
l++)
35005 {
35010 }
35011 }
35012 return true;
35013 }
static bool SolidTile2(Tile testTile)