diff --git a/src/client/draw.qc b/src/client/draw.qc index 0a7a00c..3966355 100644 --- a/src/client/draw.qc +++ b/src/client/draw.qc @@ -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); } diff --git a/src/client/hud.qc b/src/client/hud.qc index ca4486e..79971ad 100644 --- a/src/client/hud.qc +++ b/src/client/hud.qc @@ -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 diff --git a/src/client/vgui_chooseteam.qc b/src/client/vgui_chooseteam.qc index e26e741..f817d4d 100644 --- a/src/client/vgui_chooseteam.qc +++ b/src/client/vgui_chooseteam.qc @@ -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)); } diff --git a/src/client/vgui_motd.qc b/src/client/vgui_motd.qc index 338a6f0..0312efd 100644 --- a/src/client/vgui_motd.qc +++ b/src/client/vgui_motd.qc @@ -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)); }