Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by fffeeewwewed ( 13 years ago )
private int[,] fill2DArray(int aX, int aY, int eX, int eY)
        {
            if (checkSPos != StartPos)
            {
                int[,] i2DArray = new int[eX - aX, eY - aY];
                for (int x = 0; x < eX - aX; x++)
                {
                    for (int y = 0; y < eY - aY; y++)
                    {
                        i2DArray[x, y] = (aX + x) + (aY + y);
                    }
                }
                return i2DArray;
            }
            else { checkSPos = StartPos; }
            return {{-1,-1}};
        }

 

Revise this Paste

Your Name: Code Language: