Quantcast

In MainPanel.scroll_frame:Update(): Removed the profession check again - that wasn't the issue.

James D. Callahan III [03-25-10 - 03:12]
In MainPanel.scroll_frame:Update(): Removed the profession check again - that wasn't the issue.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 9d20042..78fee51 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2654,22 +2654,19 @@ do
 					-- Check to see if any recipes for this acquire type will be shown - otherwise, don't show the type in the list.
 					for spell_id, faction in pairs(private.acquire_list[acquire_type].recipes) do
 						local recipe = private.recipe_list[spell_id]
+						local has_faction = false

-						if recipe.profession == current_prof then
-							local has_faction = false
-
-							if type(faction) == "boolean"
-								or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
-								has_faction = true
-							end
+						if type(faction) == "boolean"
+							or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
+							has_faction = true
+						end

-							if has_faction and recipe.is_visible and recipe.is_relevant then
-								count = count + 1
+						if has_faction and recipe.is_visible and recipe.is_relevant then
+							count = count + 1

-								if not recipe_registry[recipe] then
-									recipe_registry[recipe] = true
-									recipe_count = recipe_count + 1
-								end
+							if not recipe_registry[recipe] then
+								recipe_registry[recipe] = true
+								recipe_count = recipe_count + 1
 							end
 						end
 					end
@@ -2697,22 +2694,19 @@ do
 					-- Check to see if any recipes for this location will be shown - otherwise, don't show the location in the list.
 					for spell_id, faction in pairs(private.location_list[loc_name].recipes) do
 						local recipe = private.recipe_list[spell_id]
+						local has_faction = false

-						if recipe.profession == current_prof then
-							local has_faction = false
-
-							if type(faction) == "boolean"
-								or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
-								has_faction = true
-							end
+						if type(faction) == "boolean"
+							or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
+							has_faction = true
+						end

-							if has_faction and recipe.is_visible and recipe.is_relevant then
-								count = count + 1
+						if has_faction and recipe.is_visible and recipe.is_relevant then
+							count = count + 1

-								if not recipe_registry[recipe] then
-									recipe_registry[recipe] = true
-									recipe_count = recipe_count + 1
-								end
+							if not recipe_registry[recipe] then
+								recipe_registry[recipe] = true
+								recipe_count = recipe_count + 1
 							end
 						end
 					end