Use Font_GetID() in the places where drawfont is used.

This commit is contained in:
Marco Cawthorne 2021-11-04 22:50:06 +01:00
parent e26d4ea93f
commit dae3aec823
Signed by: eukara
GPG key ID: C196CD8BA993248A
5 changed files with 5 additions and 5 deletions

View file

@ -194,7 +194,7 @@ w_beamgun_hud(void)
txt4 = sprintf("LIGHTNING: %s", lmodes[getstati(48)]);
pos = g_hudmins + (g_hudres / 2) + [-80,-48];
drawfont = FONT_20;
drawfont = Font_GetID(FONT_20);
drawstring(pos, txt1, [20,20], col1, 1.0f,
DRAWFLAG_ADDITIVE);
pos[1] += 24;

View file

@ -292,7 +292,7 @@ w_chemicalgun_hud(void)
txt4 = "PRESSURE:";
pos = g_hudmins + (g_hudres / 2) + [-128,-96];
drawfont = FONT_20;
drawfont = Font_GetID(FONT_20);
drawstring(pos + [0,8], txt1, [20,20], col1, 1.0f,
DRAWFLAG_ADDITIVE);
w_chemgun_drawvial(pos, getstati(51), [0,1,0]);

View file

@ -310,7 +310,7 @@ w_dml_hud(void)
txt4 = sprintf("PAYLOAD: %s", pmodes[getstati(45)]);
pos = g_hudmins + (g_hudres / 2) + [-80,-48];
drawfont = FONT_20;
drawfont = Font_GetID(FONT_20);
drawstring(pos, txt1, [20,20], col1, 1.0f,
DRAWFLAG_ADDITIVE);
pos[1] += 24;

View file

@ -180,7 +180,7 @@ w_grenade_hud(void)
txt2 = sprintf("PAYLOAD: %s", pmodes[getstati(50)]);
pos = g_hudmins + (g_hudres / 2) + [-48,-16];
drawfont = FONT_20;
drawfont = Font_GetID(FONT_20);
drawstring(pos, txt1, [20,20], col1, 1.0f,
DRAWFLAG_ADDITIVE);
drawstring(pos + [0,24], txt2, [20,20], col2, 1.0f,

View file

@ -274,7 +274,7 @@ w_shotgun_hud(void)
spreadstr = sprintf("SPREAD: %s", gsmodes[getstati(41)]);
pos = g_hudmins + (g_hudres / 2) + [-48,-16];
drawfont = FONT_20;
drawfont = Font_GetID(FONT_20);
drawstring(pos, shellstr, [20,20], col1, 1.0f,
DRAWFLAG_ADDITIVE);
drawstring(pos + [0,24], spreadstr, [20,20], col2, 1.0f,