Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindSpawn()

void Terraria.Player.FindSpawn ( )
inline

Definition at line 51095 of file Player.cs.

51096 {
51097 for (int i = 0; i < 200; i++)
51098 {
51099 if (spN[i] == null)
51100 {
51101 SpawnX = -1;
51102 SpawnY = -1;
51103 break;
51104 }
51105 if (spN[i] == Main.worldName && spI[i] == Main.worldID)
51106 {
51107 SpawnX = spX[i];
51108 SpawnY = spY[i];
51109 break;
51110 }
51111 }
51112 }
string[] spN
Definition Player.cs:2071

References Terraria.Main.worldID, and Terraria.Main.worldName.