changeset 16:8b1e8ba5753d v1.0-rc4

WorldQuests: - Filter interface reverted: - Left-click to single out a category value, right-click to exclude. Hold shift to set multiple inclusion rules. - Filters operate inclusively. If any of the criteria is green, that pin will appear.
author Nenue
date Mon, 24 Oct 2016 06:00:05 -0400
parents ecf6f005ce38
children 594692f36b5b
files WorldPlan.lua
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/WorldPlan.lua	Mon Oct 24 05:50:11 2016 -0400
+++ b/WorldPlan.lua	Mon Oct 24 06:00:05 2016 -0400
@@ -966,8 +966,8 @@
         print('   include? ', filterKey, controlValue, filterType)
       end
     end
+    self.filtered = (not isIncluded)
   end
-  self.filtered = (not isIncluded)
 
 
   if not TQ_IsActive(self.questID) then
@@ -1254,9 +1254,8 @@
 
   if not filterKey then
     -- resetting
-    for k,v in pairs(WorldPlan.UsedFilters) do
-      wipe(v)
-    end
+    wipe(WorldPlan.UsedFilters)
+
   elseif IsShiftKeyDown() then
     WorldPlan.UsedFilters[filterKey] = nil
   else