aligning hud digits vertically
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3779 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -658,8 +658,8 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
|
||||
if(!hidehudequipment)
|
||||
{
|
||||
pushfont("huddigits");
|
||||
draw_textf("%d", 90, 827, p->health);
|
||||
if(p->armour) draw_textf("%d", 390, 827, p->armour);
|
||||
draw_textf("%d", 90, 823, p->health);
|
||||
if(p->armour) draw_textf("%d", 390, 823, p->armour);
|
||||
if(p->weaponsel && p->weaponsel->type>=GUN_KNIFE && p->weaponsel->type<NUMGUNS)
|
||||
{
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
@@ -580,11 +580,11 @@ void weapon::renderstats()
|
||||
{
|
||||
char gunstats[64];
|
||||
sprintf(gunstats, "%i", mag); ///%i", mag, ammo);
|
||||
draw_text(gunstats, 690, 827);
|
||||
draw_text(gunstats, 690, 823);
|
||||
int offset = text_width(gunstats);
|
||||
glScalef(0.5f, 0.5f, 1.0f);
|
||||
sprintf(gunstats, "%i", ammo);
|
||||
draw_text(gunstats, (690 + offset)*2, 830*2);
|
||||
draw_text(gunstats, (690 + offset)*2, 826*2);
|
||||
glLoadIdentity();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user