aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-24 07:34:00 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-24 07:34:00 -0500
commit5c1be9978e4c9b18c400c051fc2b083a02b74b7a (patch)
tree2c8dbf3aea3539d2f4c6db3ef56eb1880fd14786 /src/ui.cpp
parent4bf3665158e71e9b20a2231428d42d400da8332f (diff)
parent19ef54b2c5ffcaefdce352c6f195a62c05c42767 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 1ea844c..21df830 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -277,6 +277,7 @@ namespace ui {
width+=fontSize/2;
}else if(s[i]=='\b'){ // Handle backspaces?
// Why?
+ // Cuz
}else{
width+=ftexwh[i].x+fontSize*.1;
}
@@ -473,7 +474,7 @@ namespace ui {
hub.y-=fontSize*1.15;
glRectf(hub.x,
hub.y,
- hub.x+(player->health/player->maxHealth)*100,
+ hub.x+(player->health/player->maxHealth)*130,
hub.y+12);
}