diff options
| author | Bob Blackmon <bob.blackmon@ymail.com> | 2017-08-26 20:49:10 -0400 |
|---|---|---|
| committer | Bob Blackmon <bob.blackmon@ymail.com> | 2017-08-26 20:49:10 -0400 |
| commit | b4bb45d02810ab6ebd0160661499b36a01a05c37 (patch) | |
| tree | e92ac16875081c56db2b5b1f3964c03377c5736f /lua/zones.lua | |
| parent | 84325f6caef2599c5ee7750ea04ae66212544e55 (diff) | |
| download | zones-b4bb45d02810ab6ebd0160661499b36a01a05c37.tar.gz zones-b4bb45d02810ab6ebd0160661499b36a01a05c37.tar.bz2 zones-b4bb45d02810ab6ebd0160661499b36a01a05c37.zip | |
Remove mapping of zones
They were not working properly.
Diffstat (limited to 'lua/zones.lua')
| -rw-r--r-- | lua/zones.lua | 8 |
1 files changed, 5 insertions, 3 deletions
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) |
