Fix console offset while Team Arena voiceMenu is open

Fix console text being on top of the Tema Arena voice chat head in
screen resolutions higher than 640x480.
This commit is contained in:
Zack Middleton 2018-05-14 00:07:56 -05:00
parent f4db711024
commit 60a3112e45
1 changed files with 8 additions and 2 deletions

View File

@ -1802,8 +1802,14 @@ int CG_ClientNumFromName(const char *p) {
}
void CG_ShowResponseHead(void) {
Menus_OpenByName("voiceMenu");
trap_Cvar_Set("cl_conXOffset", "72");
float x, y, w, h;
x = 72;
y = w = h = 0;
CG_AdjustFrom640( &x, &y, &w, &h );
Menus_OpenByName("voiceMenu");
trap_Cvar_Set("cl_conXOffset", va("%d", (int)x));
cg.voiceTime = cg.time;
}