Definition at line 61360 of file Main.cs.
61361 {
61364 {
61365 NetMessage.SendData(7);
61367 }
61369 {
61370 if (
player[
i].active && Netplay.Clients[
i].IsActive)
61371 {
61372 Netplay.Clients[
i].SpamUpdate();
61373 }
61374 }
61376 {
61377 bool flag = true;
61380 while (flag)
61381 {
61382 num++;
61383 if (num >= 400)
61384 {
61385 num = 0;
61386 }
61388 if (!
Main.item[num].active ||
Main.item[num].playerIndexTheItemIsReservedFor == 255)
61389 {
61390 NetMessage.SendData(21, -1, -1, null, num);
61391 }
61393 {
61394 flag = false;
61395 }
61396 }
61398 }
61399 for (
int j = 0;
j < 400;
j++)
61400 {
61402 if (
item.active && (
item.playerIndexTheItemIsReservedFor == 255 || !
player[
item.playerIndexTheItemIsReservedFor].active))
61403 {
61405 }
61406 }
61407 for (
int k = 0;
k < 255;
k++)
61408 {
61409 if (Netplay.Clients[
k].IsActive)
61410 {
61411 Netplay.Clients[
k].TimeOutTimer++;
61412 if (Netplay.Clients[
k].State == 0)
61413 {
61414 Netplay.Clients[
k].TimeOutTimer += 3;
61415 }
61416 if (!
stopTimeOuts && Netplay.Clients[
k].TimeOutTimer > 7200)
61417 {
61418 Netplay.Clients[
k].PendingTermination =
true;
61419 Netplay.Clients[
k].PendingTerminationApproved =
true;
61420 }
61421 }
61423 {
61424 RemoteClient.CheckSection(
k,
player[
k].position);
61425 }
61426 }
61427 }
static double IEEERemainder(double x, double y)
static int maxItemUpdates
static int lastItemUpdate
static int netPlayCounter
References Terraria.RemoteClient.CheckSection(), Terraria.Netplay.Clients, System.Text.RegularExpressions.i, System.Math.IEEERemainder(), Terraria.Main.item, Terraria.Main.lastItemUpdate, Terraria.Main.maxItemUpdates, Terraria.Main.maxNetPlayers, Terraria.Main.netPlayCounter, Terraria.Main.player, Terraria.NetMessage.SendData(), and Terraria.Main.stopTimeOuts.
Referenced by Terraria.Main.DoUpdateInWorld().