Rename global video_res to g_vidsize
This commit is contained in:
parent
802cf3a66a
commit
9cea5fa609
4 changed files with 7 additions and 7 deletions
|
@ -29,28 +29,28 @@ SH_DrawSciScore(void)
|
|||
vector pos;
|
||||
|
||||
line = "^xFA0Scientist round score info:";
|
||||
pos = (video_res / 2);
|
||||
pos = (g_vidsize / 2);
|
||||
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
|
||||
pos[1] -= 64;
|
||||
Font_DrawText(pos, line, FONT_CON);
|
||||
|
||||
|
||||
line = sprintf("^xFA0Team Red: %d kills", serverkeyfloat("teamkills_1"));
|
||||
pos = (video_res / 2);
|
||||
pos = (g_vidsize / 2);
|
||||
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
|
||||
pos[1] -= 36;
|
||||
Font_DrawText(pos, line, FONT_CON);
|
||||
|
||||
|
||||
line = sprintf("^xFA0Team Blue: %d kills", serverkeyfloat("teamkills_2"));
|
||||
pos = (video_res / 2);
|
||||
pos = (g_vidsize / 2);
|
||||
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
|
||||
pos[1] -= 24;
|
||||
Font_DrawText(pos, line, FONT_CON);
|
||||
|
||||
|
||||
line = sprintf("^xFA0Scientists left: %d", serverkeyfloat("sci_count"));
|
||||
pos = (video_res / 2);
|
||||
pos = (g_vidsize / 2);
|
||||
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
|
||||
Font_DrawText(pos, line, FONT_CON);
|
||||
}
|
||||
|
|
|
@ -481,7 +481,7 @@ HUD_DrawInsanityIcon(void)
|
|||
insanityalpha = bound(0,pl.sh_insaneactive * 0.05f,0.4);
|
||||
drawfill(
|
||||
video_mins,
|
||||
video_res,
|
||||
g_vidsize,
|
||||
[1,0,0],
|
||||
insanityalpha,
|
||||
DRAWFLAG_ADDITIVE
|
||||
|
|
|
@ -167,5 +167,5 @@ VGUI_ChooseTeam(void)
|
|||
}
|
||||
|
||||
winChooseTeam.Show();
|
||||
winChooseTeam.SetPos((video_res / 2) - (winChooseTeam.GetSize() / 2));
|
||||
winChooseTeam.SetPos((g_vidsize / 2) - (winChooseTeam.GetSize() / 2));
|
||||
}
|
||||
|
|
|
@ -76,5 +76,5 @@ VGUI_ShowMOTD(void)
|
|||
}
|
||||
|
||||
winMotd.Show();
|
||||
winMotd.SetPos((video_res / 2) - (winMotd.GetSize() / 2));
|
||||
winMotd.SetPos((g_vidsize / 2) - (winMotd.GetSize() / 2));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue