Fix defensive siege bug

Sasky [03-26-15 - 15:26]
Fix defensive siege bug
Filename
CyrHUD.txt
classes/Label.lua
classes/ScoringBar.lua
diff --git a/CyrHUD.txt b/CyrHUD.txt
index d5e526c..13f1be0 100644
--- a/CyrHUD.txt
+++ b/CyrHUD.txt
@@ -1,6 +1,6 @@
 ## APIVersion: 100011
 ## Title: CyrHUD
-## Version: 1.2.0
+## Version: 1.2.1
 ## Author: Sasky
 ## SavedVariables: CyrHUD_SavedVars
 ## OptionalDependsOn: LibAddonMenu-2.0
diff --git a/classes/Label.lua b/classes/Label.lua
index 9007926..21bc873 100644
--- a/classes/Label.lua
+++ b/classes/Label.lua
@@ -101,7 +101,7 @@ function Label:exposeControls(nImg, nText)
         self.entry["img"..i]:SetHidden(i > nImg)
     end
     for i=1,3 do
-        self.entry["txt"..i]:SetHidden(i > nImg)
+        self.entry["txt"..i]:SetHidden(i > nText)
     end
 end

diff --git a/classes/ScoringBar.lua b/classes/ScoringBar.lua
index c5ee173..75499d0 100644
--- a/classes/ScoringBar.lua
+++ b/classes/ScoringBar.lua
@@ -61,7 +61,6 @@ local TEXT_TIME = "txt4"
 local ICON_DC, ICON_EP, ICON_AD = "img1", "img2", "img3"
 local TEXT_DC, TEXT_EP, TEXT_AD = "txt1", "txt2", "txt3"
 function bar:configureLabel(label)
-    d("Configuring label for status bar")
     label:exposeControls(3,4)
     label.main:SetCenterColor(CyrHUD.info.invisColor:UnpackRGBA())
     label:getControl(ICON_DC):SetTexture(CyrHUD.info[DC].flag)