mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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:
parent
f4db711024
commit
60a3112e45
1 changed files with 8 additions and 2 deletions
|
@ -1802,8 +1802,14 @@ int CG_ClientNumFromName(const char *p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CG_ShowResponseHead(void) {
|
void CG_ShowResponseHead(void) {
|
||||||
Menus_OpenByName("voiceMenu");
|
float x, y, w, h;
|
||||||
trap_Cvar_Set("cl_conXOffset", "72");
|
|
||||||
|
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;
|
cg.voiceTime = cg.time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue