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

◆ FindOldestProjectile()

static int Terraria.Projectile.FindOldestProjectile ( )
inlinestatic

Definition at line 10110 of file Projectile.cs.

10111 {
10112 int result = 1000;
10113 int num = 9999999;
10114 for (int i = 0; i < 1000; i++)
10115 {
10116 if (!Main.projectile[i].netImportant && Main.projectile[i].timeLeft < num)
10117 {
10118 result = i;
10119 num = Main.projectile[i].timeLeft;
10120 }
10121 }
10122 return result;
10123 }

References Terraria.Main.projectile.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Projectile.NewProjectile().

+ Here is the caller graph for this function: