Fixed range checking to use the range we specify instead of hardcoded 32.

This commit is contained in:
Zack 2012-01-12 11:01:44 -05:00
parent e503abcab9
commit 491eafd484

View file

@ -1078,7 +1078,7 @@ namespace TShockAPI
public static bool CheckRangePermission(TSPlayer player, int x, int y, int range = 32)
{
if (Config.RangeChecks && ((Math.Abs(player.TileX - x) > 32) || (Math.Abs(player.TileY - y) > 32)))
if (Config.RangeChecks && ((Math.Abs(player.TileX - x) > range) || (Math.Abs(player.TileY - y) > range)))
{
return true;
}