From 491eafd484c8d7bdfecb2aa2ca0872307c3f4ce0 Mon Sep 17 00:00:00 2001 From: Zack Date: Thu, 12 Jan 2012 11:01:44 -0500 Subject: [PATCH] Fixed range checking to use the range we specify instead of hardcoded 32. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 57ebf221..42afbe49 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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; }