Quantcast

G/C auras in the state machine for each new frame.

Johnny C. Lam [12-05-13 - 08:19]
G/C auras in the state machine for each new frame.

There aren't that many to G/C from frame to frame and it keeps the state
aura table under control.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1240 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index eec5840..276b121 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -614,8 +614,8 @@ end

 -- Reset the state to the current conditions.
 function OvaleAura:ResetState(state)
-	-- Periodically garbage-collect auras in the state machine.
-	if not Ovale.enCombat and state.serial % 1000 then
+	-- Garbage-collect auras in the state machine.
+	if not Ovale.enCombat then
 		self:CleanState(state)
 	end
 	state.serial = state.serial + 1