Terraria.Graphics.Capture.CaptureInterface.PointWorldClamp C# (CSharp) Method

PointWorldClamp() private static method

private static PointWorldClamp ( Point &point, int fluff ) : void
point Point
fluff int
return void
        private static void PointWorldClamp(ref Point point, int fluff)
        {
            if (point.X < fluff)
                point.X = fluff;
            if (point.X > Main.maxTilesX - 1 - fluff)
                point.X = Main.maxTilesX - 1 - fluff;
            if (point.Y < fluff)
                point.Y = fluff;
            if (point.Y <= Main.maxTilesY - 1 - fluff)
                return;
            point.Y = Main.maxTilesY - 1 - fluff;
        }