public void RemoveSpawn()
{
this.SpawnX = -1;
this.SpawnY = -1;
for (int index1 = 0; index1 < 200 && this.spN[index1] != null; ++index1)
{
if (this.spN[index1] == Main.worldName && this.spI[index1] == Main.worldID)
{
for (int index2 = index1; index2 < 199; ++index2)
{
this.spN[index2] = this.spN[index2 + 1];
this.spI[index2] = this.spI[index2 + 1];
this.spX[index2] = this.spX[index2 + 1];
this.spY[index2] = this.spY[index2 + 1];
}
this.spN[199] = (string)null;
this.spI[199] = 0;
this.spX[199] = 0;
this.spY[199] = 0;
break;
}
}
}