Terraria.Player.FindSpawn C# (CSharp) Method

FindSpawn() public method

public FindSpawn ( ) : void
return void
        public void FindSpawn()
        {
            for (int index = 0; index < 200; ++index)
            {
                if (this.spN[index] == null)
                {
                    this.SpawnX = -1;
                    this.SpawnY = -1;
                    break;
                }
                if (this.spN[index] == Main.worldName && this.spI[index] == Main.worldID)
                {
                    this.SpawnX = this.spX[index];
                    this.SpawnY = this.spY[index];
                    break;
                }
            }
        }
Player