Quantcast

Only show the snapshot count when the Paper doll debug option is checked.

Johnny C. Lam [10-23-13 - 07:19]
Only show the snapshot count when the Paper doll debug option is checked.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1093 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvalePaperDoll.lua
diff --git a/OvalePaperDoll.lua b/OvalePaperDoll.lua
index 940b70b..7250039 100644
--- a/OvalePaperDoll.lua
+++ b/OvalePaperDoll.lua
@@ -240,7 +240,8 @@ end
 function OvalePaperDoll:PLAYER_REGEN_ENABLED(event)
 	local now = API_GetTime()
 	if Ovale.enCombat and Ovale.combatStartTime then
-		Ovale:FormatPrint("[%s] %d snapshots in %f seconds.", OVALE_PAPERDOLL_DEBUG, self_snapshotCount, now - Ovale.combatStartTime)
+		Ovale:DebugPrintf(OVALE_PAPERDOLL_DEBUG, true, "%d snapshots in %f seconds.",
+			self_snapshotCount, now - Ovale.combatStartTime)
 	end
 	self_pool:Drain()
 end