Some changes to projectile cheat detection

(Redigit actually listened to some of Zidonuke's requests)
This commit is contained in:
Deathmax 2012-01-19 21:38:42 +08:00
parent 55d7b78971
commit e06588a8de
3 changed files with 13 additions and 12 deletions

View file

@ -705,14 +705,14 @@ namespace TShockAPI
return true;
}
public int SearchProjectile(short identity)
public int SearchProjectile(short identity, int owner)
{
for (int i = 0; i < Main.maxProjectiles; i++)
{
if (Main.projectile[i].identity == identity)
if (Main.projectile[i].identity == identity && Main.projectile[i].owner == owner)
return i;
}
return 1001;
return 1000;
}
public string SanitizeString(string str)