From b4bb45d02810ab6ebd0160661499b36a01a05c37 Mon Sep 17 00:00:00 2001 From: Bob Blackmon Date: Sat, 26 Aug 2017 20:49:10 -0400 Subject: Remove mapping of zones They were not working properly. --- lua/zones.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lua/zones.lua') diff --git a/lua/zones.lua b/lua/zones.lua index d01d7e8..f95d6f2 100644 --- a/lua/zones.lua +++ b/lua/zones.lua @@ -199,8 +199,10 @@ function zones.CreateZoneMapping() end function zones.GetNearbyZones(pos) - local idx = GetZoneIndex(pos) - return zones.Map[idx] or {} + //This system isn't working. + -- local idx = GetZoneIndex(pos) + -- return zones.Map[idx] or {} + return zones.List end zones.Cache = {} @@ -371,8 +373,8 @@ if SERVER then table.Add(zto.points, zfrom.points) table.Add(zto.height, zfrom.height) + zones.CalcBounds(zto) zones.Remove(from) - zones.CalcBounds(to) hook.Run("OnZoneMerged",zto,zto.class,to,zfrom,zfrom.class,from) -- cgit v1.2.3-70-g09d2