Use Font_GetID() in the places where drawfont is used.
This commit is contained in:
parent
59ed4d99e9
commit
e5d070d4a6
4 changed files with 8 additions and 8 deletions
|
@ -144,7 +144,7 @@ HUD_Draw(void)
|
|||
}else{
|
||||
// Fake spectator, or the temporary forced third-person on death (not yet implemented).
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
// TAGGG - could have some message from server-to-client on changing from
|
||||
// player to spectator to call this only then, but I think doing this every
|
||||
// frame for spectator is harmless anyway. Changing the FOV isn't necessary,
|
||||
|
@ -184,7 +184,7 @@ HUD_DrawSpectator(void)
|
|||
|
||||
spectator spec = (spectator)pSeat->m_ePlayer;
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
vector vecPos;
|
||||
string strText;
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ ClientGame_Init(float apilevel, string enginename, float engineversion)
|
|||
// safe default for whatever doesn't specify it?
|
||||
// Beware that draw calls that don't set the drawfont will still rely
|
||||
// on the previously set one, although that could be intentional too.
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
UI_Init();
|
||||
|
|
|
@ -148,7 +148,7 @@ Obituary_Draw(void)
|
|||
int i;
|
||||
vector pos;
|
||||
vector item;
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
pos = g_hudmins + [g_hudres[0] - 18, 56];
|
||||
|
||||
if (g_obituary_time <= 0 && g_obituary_count > 0) {
|
||||
|
|
|
@ -31,7 +31,7 @@ Scores_DrawTeam(player pl, vector pos)
|
|||
{
|
||||
drawfill(pos, [290, 1], SCORE_LINE_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
drawstring(pos + [0,-18], "Teams", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [124,-18], "kills / deaths", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [240,-18], "latency", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
@ -100,7 +100,7 @@ Scores_DrawTeam(player pl, vector pos)
|
|||
pos[1] += 12;
|
||||
}
|
||||
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -108,7 +108,7 @@ Scores_DrawNormal(player pl, vector pos)
|
|||
{
|
||||
drawfill(pos, [290, 1], SCORE_LINE_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
||||
drawfont = FONT_20;
|
||||
drawfont = Font_GetID(FONT_20);
|
||||
drawstring(pos + [0,-18], "Player", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [124,-18], "kills / deaths", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
drawstring(pos + [240,-18], "latency", [20,20], SCORE_HEADER_C, 1.0f, DRAWFLAG_ADDITIVE);
|
||||
|
@ -154,7 +154,7 @@ Scores_DrawNormal(player pl, vector pos)
|
|||
pos[1] += 20;
|
||||
}
|
||||
|
||||
drawfont = FONT_CON;
|
||||
drawfont = Font_GetID(FONT_CON);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue