1809 {
1820 int num = -1;
1824 int num5 = Utils.Clamp(
value, 0, Main.maxTilesX - 1);
1831 {
1833 {
1834 if (Main.tile[i,
j] ==
null || !Main.tile[i,
j].active() || (!Main.tileSolid[Main.tile[
i,
j].type] && (!Main.tileSolidTop[Main.tile[
i,
j].type] || Main.tile[
i,
j].frameY != 0)))
1835 {
1836 continue;
1837 }
1841 if (Main.tile[i,
j].halfBrick())
1842 {
1843 vector4.Y += 8f;
1845 }
1847 {
1848 continue;
1849 }
1851 {
1854 {
1858 {
1860 }
1862 {
1863 result.Y = vector4.Y - (vector3.Y + (float)Height);
1865 }
1866 }
1867 }
1868 else if (
vector3.X + (
float)Width <=
vector4.X && !Main.tileSolidTop[Main.tile[i,
j].type])
1869 {
1873 {
1874 result.X = vector4.X - (vector3.X + (float)Width);
1875 }
1877 {
1879 }
1880 }
1881 else if (
vector3.X >=
vector4.X + 16f && !Main.tileSolidTop[Main.tile[i,
j].type])
1882 {
1886 {
1887 result.X = vector4.X + 16f -
vector3.X;
1888 }
1890 {
1892 }
1893 }
1894 else if (
vector3.Y >=
vector4.Y + (
float)
num7 && !Main.tileSolidTop[Main.tile[i,
j].type])
1895 {
1899 result.Y = vector4.Y + (float)
num7 -
vector3.Y + 0.01f;
1901 {
1903 }
1904 }
1905 }
1906 }
1907 return result;
1908 }