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

◆ RemoveSpawn()

void Terraria.Player.RemoveSpawn ( )
inline

Definition at line 55295 of file Player.cs.

55296 {
55297 SpawnX = -1;
55298 SpawnY = -1;
55299 for (int i = 0; i < 200 && spN[i] != null; i++)
55300 {
55301 if (spN[i] == Main.worldName && spI[i] == Main.worldID)
55302 {
55303 for (int j = i; j < 199; j++)
55304 {
55305 spN[j] = spN[j + 1];
55306 spI[j] = spI[j + 1];
55307 spX[j] = spX[j + 1];
55308 spY[j] = spY[j + 1];
55309 }
55310 spN[199] = null;
55311 spI[199] = 0;
55312 spX[199] = 0;
55313 spY[199] = 0;
55314 break;
55315 }
55316 }
55317 }
string[] spN
Definition Player.cs:2638

References Terraria.Player.SpawnX, Terraria.Player.SpawnY, Terraria.Player.spI, Terraria.Player.spN, Terraria.Player.spX, Terraria.Player.spY, Terraria.Main.worldID, and Terraria.Main.worldName.

Referenced by Terraria.Player.TileInteractionsUse().

+ Here is the caller graph for this function: