Minor console mouse release tweak.

This commit is contained in:
svdijk 2012-11-05 20:20:49 +01:00 committed by Yamagi Burmeister
parent 63e7855ab7
commit eb8a2d792f

View file

@ -693,7 +693,7 @@ void
CL_UpdateWindowedMouse(void) CL_UpdateWindowedMouse(void)
{ {
if (cls.key_dest == key_menu || cls.key_dest == key_console || if (cls.key_dest == key_menu || cls.key_dest == key_console ||
(cls.key_dest == key_game && cls.state == ca_disconnected)) (cls.key_dest == key_game && cls.state != ca_active && !cls.disable_screen))
{ {
Cvar_SetValue("windowed_mouse", 0); Cvar_SetValue("windowed_mouse", 0);
} }