HealthBar Library

Files at this revision

API Documentation at this revision

Comitter:
ll14c4p
Date:
Thu May 04 11:50:43 2017 +0000
Parent:
2:8c597d140b1d
Commit message:
Changed == to <= in case of 1 going to -1 without ==0

Changed in this revision

HealthBar.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8c597d140b1d -r 824c16fb35e7 HealthBar.cpp
--- a/HealthBar.cpp	Thu May 04 11:36:55 2017 +0000
+++ b/HealthBar.cpp	Thu May 04 11:50:43 2017 +0000
@@ -67,7 +67,7 @@
     if(TotalHP == 1){
     lcd.drawLine(0,47,10,47,1); //Working
     }
-    if(TotalHP == 0){
+    if(TotalHP <= 0){
         ZeroHP = 1;
     }