mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
cl_main:CL_UpdateWindowedMouse() optimization.
This commit is contained in:
parent
a76d7d5cfb
commit
561add00a8
1 changed files with 8 additions and 2 deletions
|
@ -700,11 +700,17 @@ CL_UpdateWindowedMouse(void)
|
|||
if (cls.key_dest == key_menu || cls.key_dest == key_console ||
|
||||
(cls.key_dest == key_game && (cls.state != ca_active || !cl.refresh_prepped)))
|
||||
{
|
||||
Cvar_SetValue("windowed_mouse", 0);
|
||||
if (windowed_mouse->value)
|
||||
{
|
||||
Cvar_SetValue("windowed_mouse", 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Cvar_SetValue("windowed_mouse", 1);
|
||||
if (!windowed_mouse->value)
|
||||
{
|
||||
Cvar_SetValue("windowed_mouse", 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue