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

◆ RemoveSpawn()

void Terraria.Player.RemoveSpawn ( )
inline

Definition at line 51114 of file Player.cs.

51115 {
51116 SpawnX = -1;
51117 SpawnY = -1;
51118 for (int i = 0; i < 200 && spN[i] != null; i++)
51119 {
51120 if (spN[i] == Main.worldName && spI[i] == Main.worldID)
51121 {
51122 for (int j = i; j < 199; j++)
51123 {
51124 spN[j] = spN[j + 1];
51125 spI[j] = spI[j + 1];
51126 spX[j] = spX[j + 1];
51127 spY[j] = spY[j + 1];
51128 }
51129 spN[199] = null;
51130 spI[199] = 0;
51131 spX[199] = 0;
51132 spY[199] = 0;
51133 break;
51134 }
51135 }
51136 }
string[] spN
Definition Player.cs:2071

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