aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index fa8cf9c..d138a0a 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -136,7 +136,7 @@ namespace ui {
pw=putChar(xo,yo,s[i])+fontSize*.1;
xo+=pw;
}
- }while(s[i++]);
+ }while(s[++i]);
return xo;
}
float putText(const float x,const float y,const char *str,...){ // putText() simply runs 'str' and the extra arguments though
@@ -174,10 +174,10 @@ namespace ui {
x=player->loc.x-SCREEN_WIDTH/2+HLINE*8;
y=SCREEN_HEIGHT-HLINE*8;
glRectf(x,y,x+SCREEN_WIDTH-HLINE*16,y-SCREEN_HEIGHT/4);
- setFontSize(16);
+ setFontSize(12);
putString(x+HLINE,y-fontSize-HLINE,dialogBoxText);
}
- setFontSize(16);
+ setFontSize(12);
putText(((SCREEN_WIDTH/2)+offset.x)-125,SCREEN_HEIGHT-fontSize,"Health: %u/%u",player->health>0?(unsigned)player->health:0,
(unsigned)player->maxHealth);
if(player->alive){